PHP code example of devtools-marvellous / laravel-core-kit
1. Go to this page and download the library: Download devtools-marvellous/laravel-core-kit 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/ */
devtools-marvellous / laravel-core-kit example snippets
[
'api' => [
//'driver' => 'token', you can remove this row.
'driver' => 'passport',
'provider' => 'users',
'hash' => false,
],
];
[
'default' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', NULL),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
'read_write_timeout' => 0, // Add this into each settings block to prevent errors - "error while reading line from the server."
],
];
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array
*/
protected $routeMiddleware = [
//...,
'verified' => \AttractCores\LaravelCoreKit\Http\Middleware\EnsureEmailIsVerified::class,
//...,
];