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
Thank you for your answer.
Could you please explain the code to me?
I would display content cards to the specific users.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community