PHP code example of cviebrock / eloquent-log-lazy-loading
1. Go to this page and download the library: Download cviebrock/eloquent-log-lazy-loading 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/ */
cviebrock / eloquent-log-lazy-loading example snippets
use Cviebrock\EloquentLogLazyLoading\LogLazyLoading;
class MyModel extends Eloquent
{
use LogLazyLoading;
}
use Cviebrock\EloquentLogLazyLoading\LogLazyLoading;
class MyModel extends Eloquent
{
use LogLazyLoading;
protected $disableLazyLoading = true;
}