1. Go to this page and download the library: Download groovili/lumen-make 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/ */
// To enable generator permanently
$app->register(Groovili\LumenMake\LumenMakeServiceProvider::class);
// To enable generator in development mode
if (env('APP_ENV') !== 'production' || env('APP_ENV') === 'local') {
$app->register(Groovili\LumenMake\LumenMakeServiceProvider::class);
}
declare(strict_types=1);
namespace App\Http\Requests;
use Groovili\LumenMake\Requests\FormRequest;
/**
* Class FooBarRequest
* @package App\Http\Requests
*/
class FooBarRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules(): array
{
return [
'foo' => 'bail|
use Groovili\LumenMake\Requests\FormRequest;
// change to
use Illuminate\Foundation\Http\FormRequest;
bootstrap/app.php
bootstrap/app.php
bootstrap/app.php
shell
> php artisan make:request {name}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.