Support the ongoing development of Laravel.io →
Authentication Security Requests
Last updated 9 months ago.
0

you can use $this->middleware('auth') in your controller __construct method. http://laravel.com/docs/5.0/controllers#controller-middleware

0

please i have a new problem yeah. How do i write a resource middleware to make sure that he can only update his profile and not others

0

You can use something like ``` Gate::class

answer here https://laracasts.com/series/whats-new-in-laravel-5-1/episodes/13
0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

rcrisp rcrisp Joined 1 Mar 2015

Moderators

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

Your logo here?

Laravel.io

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

© 2023 Laravel.io - All rights reserved.