PHP code example of czim / laravel-datastore
1. Go to this page and download the library: Download czim/laravel-datastore 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/ */
czim / laravel-datastore example snippets
use Czim\DataStore\Contracts\Stores\Includes\IncludeDecoratorInterface;
use Illuminate\Database\Eloquent\Model;
class CustomIncludeDecorator implements IncludeDecoratorInterface
{
public function setModel(Model $model)
{
// Ignore or store and use the model as desired.
}
public function decorate(array $ };
}
// Never eager load a specific relation.
$
php
Czim\DataStore\Providers\DataStoreServiceProvider::class,
bash
$ php artisan vendor:publish