PHP code example of bjnstnkvc / builder-make-command
1. Go to this page and download the library: Download bjnstnkvc/builder-make-command 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/ */
bjnstnkvc / builder-make-command example snippets
use App\Models\Builders\UserBuilder;
/**
* Create a new Eloquent query builder for the model
*
* @param $query
*
* @return UserBuilder
*/
public function newEloquentBuilder($query): UserBuilder
{
return new UserBuilder($query);
}
use App\Models\Builders\UserBuilder;
/**
* @method static UserBuilder query() Begin querying the model.
*
* @mixin UserBuilder
*/
class User extends Authenticatable
{
//
}