PHP code example of saidqb / laravel-support

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

    

saidqb / laravel-support example snippets


use Saidqb\LaravelSupport\SQ

SQ::make('PaginateApi')->collection($paginate)->get();

use Saidqb\LaravelSupport\SQ

SQ::make('QueryFilter')
->request($request->all())
->select([
	'id',
	'name',
	'email',
])
->search([
	'name',
	'email',
]);

$dbquery = DB::table('users')

$query->query($dbquery);

return $this->response($query->get());