1. Go to this page and download the library: Download xmen/starter-kit 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/ */
xmen / starter-kit example snippets
use Xmen\StarterKit\Models\StarterKit;
class User extends Authenticatable {
use StarterKit;
...
}
//app/Providers/RouteServiceProvider.php
public const HOME = '/dashboard';
// AppServiceProvider.php top of file
use Xmen\StarterKit\Helpers\TDate;
// in the boot function
public function boot()
{
//
Carbon::setLocale('fa_IR');
Carbon::macro('jdate', function ($format) {
$dt = new TDate();
return $dt->PDate($format,self::this()->timestamp);
});
Paginator::useBootstrap();
}