PHP code example of mehmetcanfarsak / laravel-comment-and-ticket
1. Go to this page and download the library: Download mehmetcanfarsak/laravel-comment-and-ticket 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/ */
mehmetcanfarsak / laravel-comment-and-ticket example snippets
'userModel' => 'App\User'
/**
* Return the user attributes.
* @return array
*/
public static function getAuthor($id)
{
$user = self::find($id);
return [
'id' => $user->id,
'name' => $user->name,
'email' => $user->email,
'url' => '', // Optional
'avatar' => 'gravatar', // Default avatar
'admin' => $user->role === 'admin', // bool
];
}
@
@
php artisan vendor:publish
php artisan migrate