1
내가 laravel에서 검색을 만들려고 노력했다뿐만 laravel 작동하지 %%. 이것은 내 사용자 모델입니다.등 laravel 5.5
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable {
use Notifiable;
protected $table = 'users';
protected $fillable = [
'first_name',
'last_name',
'email',
'bio',
'pic',
'location',
'password',
'is_e'
];
protected $hidden = [
'password', 'remember_token',
];
public function project() {
return $this->hasMany('App\Project');
}
}
나는 비슷한 것을 사용하지 않았지만 제대로 작동했다. 그러나 전혀 같이 일하지 않습니다. 제발 도와주세요 고맙습니다