git add .
git commit "Add admin management search sort and permission structure preparation"
This commit is contained in:
@@ -9,15 +9,14 @@ class FavoriteController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$withoutHero=true;
|
||||
|
||||
$favorites = Favorite::with('favoritable')
|
||||
->where('user_id', auth()->id())
|
||||
->latest()
|
||||
->get();
|
||||
|
||||
return view('account.users.favorite.index', [
|
||||
'favorites' => $favorites,
|
||||
'withoutHero' => true
|
||||
]);
|
||||
return view('account.users.favorite.index',compact('withoutHero','favorites'));
|
||||
} public function store(Request $request)
|
||||
{
|
||||
Favorite::firstOrCreate([
|
||||
|
||||
Reference in New Issue
Block a user