1. Go to this page and download the library: Download squashjedi/basecamp 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/ */
bash
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Squashjedi\Basecamp\App\Notifications\ResetPasswordNotification;
use Squashjedi\Basecamp\App\Social;
use Squashjedi\Basecamp\App\Role;
use Squashjedi\Basecamp\App\PasswordReset;
use Illuminate\Database\Eloquent\SoftDeletes;
class User extends Authenticatable
{
use Notifiable, SoftDeletes;
/**
* The attributes that should be mutated to dates.
*
* @var array
*/
protected $dates = ['deleted_at'];
/**
* Send the password reset notification.
*
* @param string $token
* @return void
*/
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPasswordNotification($token));
}
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'verified', 'name', 'email', 'password', 'verify_token', 'deleted_at'
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
/**
* Get the social networks for the user.
*/
public function social()
{
return $this->hasMany(Social::class);
}
/**
* Get the roles for the user.
*/
public function roles()
{
return $this->hasMany(Role::class);
}
/**
* Get the password code for the user.
*/
public function passwordReset()
{
return $this->hasOne(PasswordReset::class, 'email', 'email');
}
}
bash
return [
// Other error messages...
'password_match' => 'This doesn\'t match your current password',
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.