PHP code example of charlgottschalk / vueloquent
1. Go to this page and download the library: Download charlgottschalk/vueloquent 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/ */
charlgottschalk / vueloquent example snippets
use Illuminate\Http\Request;
use CharlGottschalk\Vueloquent\VueloquentHandler;
Route::middleware('auth:api')->post('[vueloquent_route]', function (Request $request, VueloquentHandler $handler) {
return $handler->handle($request);
});
php artisan vendor:publish --tag=vueloquent-vue
php artisan vendor:publish --tag=vueloquent-js