PHP code example of pharaonic / laravel-helpers

1. Go to this page and download the library: Download pharaonic/laravel-helpers 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/ */

    

pharaonic / laravel-helpers example snippets


use Pharaonic\Laravel\Helpers\...

function json(bool $success, string $message = null, $data = null, $extra = [], array $errors = null, $status = 200, array $headers = null, $options = 0)

function validate(Request $request, array $rules, string $defaultMessage = null, array $messages = null, array $fields = null, bool $redirectToRoute = false, string $redirectTo = null, array $redirectParams = null)