PHP code example of guglielmoseminara / l5-action-based-form-request

1. Go to this page and download the library: Download guglielmoseminara/l5-action-based-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/ */

    

guglielmoseminara / l5-action-based-form-request example snippets

 php


namespace App\Http\Requests;

use RafflesArgentina\ActionBasedFormRequest\ActionBasedFormRequest;

class ArticleRequest extends ActionBasedFormRequest
{
    public static function index()
    {
        return [
            'show' => 'numeric|min:1|max:400',
            'order' => 'in:asc,desc',
        ];
    }

    public static function store()
    {
        return [
            'title' => '