PHP code example of ilaoniu / breeze

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

    

ilaoniu / breeze example snippets


php artisan breeze:install

.
.
.
    public function share(Request $request): array
    {
        return array_merge(parent::share($request), [
            'app' => [
                'name' => 'Name',
                'preferNativeScrollbar' => (bool) ! preg_match('/Windows ((NT|XP)( \d\d?.\d)?)/i', $request->userAgent()),
                'currentRouteName' => \Route::currentRouteName(),
                'currentUrl' => \URL::full(),
            ],
            'auth' => [
                'user' => \Auth::user(),
            ],
            'flash' => [
                'success' => session('success'),
                'error' => session('error'),
            ]
        ]);
    }
.
.
.