PHP code example of alive2212 / laravel-smart-restful

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

    

alive2212 / laravel-smart-restful example snippets


$app->instance('path.config', app()->basePath() . DIRECTORY_SEPARATOR . 'config');
$app->instance('path.storage', app()->basePath() . DIRECTORY_SEPARATOR . 'storage');
$app->register(Laravel\Scout\ScoutServiceProvider::class);
$app->configure('scout');
 bash
$ php artisan vendor:publish --tag=laravel_smart_restful.lang
 php
$skeleton = new Alive2212\LaravelSmartRestful();
echo $skeleton->echoPhrase('Hello, League!');