1. Go to this page and download the library: Download venturedrake/laravel-crm library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
venturedrake / laravel-crm example snippets
use Illuminate\Support\Facades\Route;
Auth::routes();
Route::get('/home', function (){
return redirect('/');
});
use Illuminate\Support\Facades\Route;
Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
return redirect('/');
})->name('dashboard');
use Illuminate\Foundation\Auth\User as Authenticatable;
use Spatie\Permission\Traits\HasRoles;
use VentureDrake\LaravelCrm\Traits\HasCrmAccess;
use VentureDrake\LaravelCrm\Traits\HasCrmTeams;
use Lab404\AuthChecker\Models\HasLoginsAndDevices;
use Lab404\AuthChecker\Interfaces\HasLoginsAndDevicesInterface;
class User extends Authenticatable implements HasLoginsAndDevicesInterface
{
use HasRoles;
use HasCrmAccess;
use HasCrmTeams;
use HasLoginsAndDevices;
// ...
}