Laravel 5.2 PHP Build a social network - Logging users in

preview_player
Показать описание
Build a complete Social Network Web Application with PHP Laravel. In this video we'll add the logic required to log users in to our UserController (Authentication).

In this course we'll build a neat little social network and cover the basics of developing with Laravel.

If you feel like doing so, please subscribe, like and share this course! All feedback is highly appreciated!

See you in the videos!
Рекомендации по теме
Комментарии
Автор

This series of tutorials was very helpful to me. Keep up with the good job!

gregorygachie
Автор

I was having trouble with the redirect after signin. My solution was to change name and id of the signin form to "email2" and "password2", respectively. I don't know why it works for you but not for me and others that have posted, but this is the solution that worked for me. I'm still enjoying the lessons. You are a wonderful teacher! :)

tedspens
Автор

For all those getting this error:
MethodNotAllowedHttpException in RouteCollection.php line 218:
double check you dashboard route, you probably using 'post' method instead of 'get'.
This worked for me.

remoteXJunkie
Автор

For those using laravel 5.4.xx having an error FatalErrorException in UserController.php line:XX Class 'App\Http\Controllers\Auth' not found, just add "use Auth" on the top of UserController.php and it should work. It's also a solution for MethodNotAllowedHttpException in RouteCollection.php line 233:

jbaclangen
Автор

sir max is a very good teacher i am using the tutorial on my own project right now

rikimarusaintpreux
Автор

Mindspace, You are wonderful explaining this series of tutos. congratulations man .... !!!

YounesBouchara
Автор

I have used the following code instead of yours, and it worked for me. Anyhow, bundle of thanks for the great lecture.

=> $email, 'password' => $password], false, false)){

return

}
else{
return redirect()->back();
}

ahmedqayyum
Автор

Somethings people need to look up them selfs the laravel docs will fill in the gaps like for instance if you want to check if the user has activated there account its very simple if (Auth::attempt(['username' => $username, 'password' => $password, 'activated' => 1] )) this checks if username = db username password = db password and if the actived field in the database is 1 all very easy stuff

dagenhamboi
Автор

really very nicely you explain each matter .

rahulsingh-pxvo
Автор

Sympathischer Typ, tolles Tutorial, danke und weiter so!

cmf
Автор

Great tutorial! Really enjoying it! Thanks :)

djhennessy
Автор

This is great, i look forward to the next one, maybe make like some kind of management app tracking assets or something like that. But this series is excellent keep up the good work.

amosthegod
Автор

Yay ! Soon i will buy a Bier for you mate

raitasorin
Автор

Pretty cool.Really really helpful to me. Thank you, bro.

myintmoe
Автор

For all those getting this error in in version 5.4.x:
Call to undefined method
try this instead:
=> $request['email'], 'password' => $request['password']])

dimapindrik
Автор

Using Laravel 5.3 I'm getting this error: Trait not found in my User.php file Any ideas what the fix is?

keeps
Автор

I got Type error: Argument 1 passed to must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\User given, in Laravel 5.3

You have to modify the User Model to get this working:

namespace App;

use
use
use as AuthenticableTrait;

class User extends Model implements Authenticatable
{
use AuthenticableTrait;
}

gfreeman
Автор

Thanks for share this wonderfull videos.

ragadiveluka
Автор

Hi I am using laravel 8 when i try to sign up it's throwing this
Target class [UserController] does not exist. Does it have to be in Laravel 5.2 for it to work?

samslunch
Автор

i having the error MethodNotAllowedHttpException in RouteCollection.php line 218:i have checked my dashbord its get and my postSignIn is postSignIn

priscillantim