1. Go to this page and download the library: Download reliqarts/mardin 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/ */
reliqarts / mardin example snippets
ReliQArts\Mardin\MardinServiceProvider::class,
// ...
@
// ...
use ReliQArts\Mardin\Traits\Messagable;
use ReliQArts\Mardin\Contracts\User as MardinUserContract;
class User extends Authenticatable implements MardinUserContract {
use Messagable;
// ...
}
use ReliQArts\Mardin\Models\Message as MardinMessage;
class Message extends MardinMessage
{
// ...
}
use App\Message; // a custom message model that extends ReliQArts\Mardin\Models\Message
use ReliQArts\Mardin\Policies\MessagePolicy;
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
// ...
Message::class => MessagePolicy::class,
];