PHP code example of sanchescom / lumen-form-request

1. Go to this page and download the library: Download sanchescom/lumen-form-request 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/ */

    

sanchescom / lumen-form-request example snippets




namespace App\Http\Requests;

use Sanchescom\Foundation\Http\FormRequest;

class StoreRequest extends FormRequest
{
	public function authorize()
	{
		return true;
	}

	public function rules()
	{
            return [
                'name' => '

$app->register(Sanchescom\Foundation\Providers\FormRequestServiceProvider::class);