PHP code example of mpociot / illuminate-contao

1. Go to this page and download the library: Download mpociot/illuminate-contao 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/ */

    

mpociot / illuminate-contao example snippets


use Mpociot\IlluminateContao\Validator;
$validator = Validator::make([], [
	"ean" => "


use Mpociot\IlluminateContao\EncapsulatedEloquentBase;

class UserProfile extends EncapsulatedEloquentBase
{

	protected $table = "user_profile";

	public function user()
	{
		return $this->belongsTo('User');
	}

}