1. Go to this page and download the library: Download wislem/scaffenger 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/ */
wislem / scaffenger example snippets
'Wislem\Scaffenger\ScaffengerServiceProvider',
use Pingpong\Traits\TrustyTrait;
class User extends Model implements AuthenticatableContract, CanResetPasswordContract {
use Authenticatable, CanResetPassword, TrustyTrait;
// ...
}
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class DatabaseSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
$this->call('PermissionTableSeeder');
$this->call('RoleTableSeeder');
$this->call('UserTableSeeder');
}
}
namespace App\Http\Controllers;
class CustomScaffengerController extends Controller {
public function __construct()
{
$this->middleware('scaffenger.auth');
}
public function yourCustomAction(){
//
}
}