Support the ongoing development of Laravel.io →
Authentication
Last updated by @tauchvogel 2 weeks ago.
0

Hello @tauchvogel

First of all welcome here :)

I think that for the login part you can use a starter kit and I suspect that Laravel Breeze is a good fit: https://laravel.com/docs/9.x/starter-kits#laravel-breeze

For the content page, is it text/an image/video?

You can have a controller like this:

namespace App\Http\Controllers;
 
use Illuminate\Http\Request;
class PersonalContentController
{
    public function __invoke(Request $request)
    {
        $contentForUser = PersonalContent::where('user_id', $request->user()->id)->get();
        return view('personalcontent')->with('contentForUser', $contentForUser);
    }
}

And in your personalcontent.blade.php something like

@foreach($contentForUser as $content)
{{ $content}}
@endforeach
0

Thank you for your answer.

Could you please explain the code to me?

I would display content cards to the specific users.

Last updated 2 weeks ago.
0

Sign in to participate in this thread!

Cloudways

Your banner here too?

maddin maddin tauchvogel Joined 2 May 2022

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.