Laravel 5.2 PHP Build a social network – Signup Controller & Model
Video Title: Laravel 5.2 PHP Build a social network – Signup Controller & Model
Welcome back everyone and the last video we both kind of our or view or basic view we put our sign up in our sign-in form and now in this one you will fill it with some life right because we’re developing with Larry ball and therefore well like it’s it’s time for us to
Create some flat back and logic which we will need for application so what I’ll do in this video is I will create a user model set it up and level and will then hook it up to my sign up or my sign-in form so that we are actually able to
Either create a user by signing up or to login if we already have a user so let’s get started I’ll start by creating my model and I’ll use the command line tool of level 4 for this so I’ll write PHP artisan make model and I want to name that model user
Now I know that I first have to clean up my installation here I guess because yeah because level already ships with the user model and while I could use that and would provide all the functionality I need I really want to show you how to set up your your own
User model and it’s real easy to do so I just deleted a user PHP file here in the app folder which is the level user model we have and in the database folder I’ll also get rid of the two PHP files which live in there so now I can execute my
Make model command and I want to make a user model and I also add tag – M – also create a migration for the user model right away now what our migrations what our models and laravel models are basically as an every MVC framework and the place where you wear your business
Logic is where you access your data where you were able to connect to your data fetch data manipulate data so yes it’s the data decor logic of your application so to say and migrations are to level offers to us where we can very conveniently generate our tables in the
Database so we what we do is use a migration file create a bolero or we create when we are on our own and in this file we basically define a scheme which should be used to create the respective table so for example to make the more classical I created my user
Model and told laravel to also create a migration file by using – M at the end now if I go into that migration file under database migrations I got this basic setup here and what this file basically does is it specifies a function which will be run when we when
We migrate or our migration files so this will create a table in our database that’s all it will do this up function will create a table in our database and here inside this function we specify how this table should be structured which fields it should have how this field
Should be configured so if they are not able and so on that is what we do in our migration file and we also got the down function which basically says if you want to roll back my bed migrations because that is possible narrable if you want to start fresh or undo things then
What should what should be done and normally you just drop the table so that you could recreate it if you migrated again so there’s that convenient way of accessing your database and creating and deleting tables if you need to roll back without having to write any SQL or without
Having to go into the database even if you might use a graphical interface and it would still be a lot of clicking and doing it by hand whereas here you yeah you just create this table like you would set up a model by accessing certain or adding certain properties so
To say to a object and then you just write it into the database so it’s a very handy feature and when you’ll often use when developing with laravel and the sequel database at least so this is a migration file for our users table and I want to have a
Very simple and plain user model so all I will do is add a string here so this will be a bar chart field if you’re familiar with sequel and this string will have two name or this field will that have the name of shares email because let’s say we want to have our
Users registered with an email instead of a username and I’ll copy that and have another string which will be the password so string as I said will just be a bar chart here and that is almost all I want a password in an email there’s one more thing I want to add
Because otherwise so rather to some problems with to build a level of application I’ll add another field which is called remember token and this is basically a field where Larry could then store a token if we had like remember me checkbox and which store that key are in
A cookie on the user’s computer and also in our database table so that we could find out if the user closest in his browser and then comes back later if he’s still locked in we’re probably not going to use that in this application though it would be very easy to
Implement and we should implement this field nonetheless because otherwise when we as I said when we use the built-in authentication methods which level has you get kind of an annoying error if you don’t have to remember tilton field specified so let’s just do that good so that’s everything we need to do that
We’ll set up our database table and what do we do in our user model file this one here in our app folder at the moment to be honest nothing because in the background lerigot we’ll have as we’re using a sequel database a kind of a strong connection to the database with eloquent
Which is leras or m so it’s M yeah it’s it’s yes it’s really a connection to the database table in the background so as we set up our table here we will be able to access all our fields in this table very very conveniently and intuitively through this user model without
Specifying any finger that’s Celtic magic done by Lera low as we’re using eloquent which again is a convenient way to access the the tables or the database behind the user Malone we’re very user model is stored so for this to work it’s important that we have a certain naming
Convention so our class here our model is called user uppercase user with beginning with an uppercase letter and our table for the user is called users all lower cases and plural with an S at the end this way level we’ll be able to figure out that the users table belongs
To the user model if we were to have say users – as our table name for some reason then we would have to change something in our user model name you would have to tell arival the table name because it would look for a user’s table
With an S at the end and it wouldn’t find the table so then we would have to add our protected property table here and just give this the name of users – if that was the name were choosing and then again it would work because now would know okay I’m not looking for
Users I’m looking for the table specified in this model here but won’t be necessary since we’re using users and yeah so everything is working right out of the box that is a very cool feature of laravel in my opinion that was a lot of talking about the users but that’s
Really an important thing to to understand how to use that because is a core feature and you might have a non sequel database in your back and then you will have to come up with your own code but if you’re using a mice Oh database then hey why not use that so
Now that we got that it’s time to create our first controller because we want to be able in our in our welcome few here will click on a sign up or on the sign-in buttons here and then we want you to fire a certain action which will
Check if if you can sign in the user if the sign-in button was clicked or if we can sign up the user if the button in the signup form was click and we’ll handle that logic neck control first let me get rid of this off folder here in
The controller’s directory and now I’m going to create a new file which I will call user controller dot PHP and yeah it’s a PHP file it is it has a name space of app HTTP controllers and it is called user controller and will it extend the default controller that’s our
User controller and now what I want to have here is I want to have a post sign up method 0 which is executed when we click the submit button in the sign up form and a post side in method which is executed if we collect a button and a
Sign in form so I’ll create those two functions public function post sign up oops and another function post sign in both of those function will receive a request object because we click on our button and then the request is sent to to our server and is handled by Lera lo
And we will soon in our routes file hook up our functions our methods were writing at the moment to the responding requests phone from this form and as this will be post requests we won’t have any get parameters obviously but we will have our parameters in the request body
Therefore we need to access the request we do this by using laravel dependency injection which is very powerful and all we have to do for this is to specify the object you want to specify to inject so the type of the object in this case it
Will be off type request and will be living in the illuminate HTTP namespace so you want to use to add this import here this use import routing to illuminate HTTP request and then we’ll just give this variable which will be injected a name and then we can use that
Name or this mary i will throughout our function so that’s how the patency injection level works really really easy and really cool you can inject all kinds of objects lateral knows about a lot of objects by default how to inject them and you can also create custom objects
Where you will then have to like add a one line in one file to tell learn how to create that object and then you can inject this custom object too so that’s really powerful thing and we will see this in later videos and yeah I’ll just
Inject we request your cue and now I want you yeah do to basically create this to sign up functionality here so we will have a email industry we can’t just access it access it by adding the request function here and it will be an array where we can just
Access our email field because if we go to our welcome few in our sign up post here form here we got our email field here and here this name of this input will be passed in this request array and we can access this name a word this this
Field in this area by just using the name we specify in our view very very easy and intuitive to do just recognized I also had a first name so let me quickly add that to our migration here so yeah just another string first name
So that we can add us to if we got it in the form we should probably store it somewhere go ahead back in the controller I’ll copy that three times on the first name we’ll all three store now requests the access accessible by using this first name key because this is the
Name we are using here and then we’ll have our password here our password which will be storing this password variable here and now what I want to do is I don’t want to store the password in its raw format in our database right I want to encrypt it in some way
Therefore I’ll use a helper function level the bcrypt function oops bcrypt which will hash my password so that it is safely decrypted in my database and later when we try to authenticate a user we will put a little use a built-in function or yeah helper provided by level which will
Automatically match or hash check the hash values of excuse me which will automatically check the hash values of the entered password and the password stored in the database so that it is able to find out if the correct password was entered now let’s finish this user sign up here by adding
By creating the user now and I will do this by just adding a variable called user which will be a new user new instance of our user object here and be sure to add this import to app user which is just where our user model lives
Here app user and now we can as a set just access the fields of in our database table like properties of this model so we’ll just access user email like a property and set it equal to email then I’ll access user first-name and set it equal to first name and I
Will access the password and set it equal to our encrypted password and all I do then is I run user safe and this will write it to the database and then let’s say I want to return just yeah let’s just returned back for a moment I will between a redirect back to
The few where we came from so are welcome few back and that’s all I’ll do for in a moment obviously later we will automatically be automatically be redirected to like a dashboard or something like this and this is all now it won’t work at the moment because I
Haven’t set up my database connection so I’ll just do this do this real quick and this will be done our dot Ian V file here under the these for database parameters now you will have to obviously configure that the way you need it to be configured on your local development environment or wherever
You’re working in my case I am using vagrant and a virtual machine my database will be called larold ville basics but you have entered whatever name you your database has obviously and I have this very secure default settings on my local environment and now we can run our migrated command under the
Command line by typing PHP artisan migrate and this will create a table in our database and now if we have a look at this this is just my secure program your application now I have these two tables in my database the migrations table just holds we are information
About migrations which we run and layer we’ll even use this if we were to roll back or reset our database now the users tables table we just set up in our PHP file and as you can see we got this email field first name password or
Remember token and an ID and our two time steps so that is everything we need here and now let me hook our our signup form up to this function here therefore I will go to my routes file under app rau HTTP routes and in here
In this route group here as of level 5.2 I will add a new route post and this will just be called signup slash sign up that will be what it will be displayed in the URL and I will then pass an array as the second argument and here this
Array I’ll first specify the users key should be the controller we’re using user controller and then add post sign up this will be the function which will get executed when we hit this request here to sign up post request and I’ll also give the drought a name for me to
Make it easier to identify and use it throughout my application by just naming it yeah really sign up now back my welcome view here I’ll take my form and currently it has no action and I’ll just actual change because I will use my template expression here by using those
Double opening and closing curly braces and here I will use the route command so that in this action in the real HTML a link should be filled in leading to our signup route because I just gave it a name and I can just type route signup
And this will then when it’s ready to screen we turned into a full link which will be used as the route of this for now currently we would get an error because it might look correct here and got all the fields we need and so on but
What we haven’t got is a certain hidden input field we need to add do two levels built and security features so to say level has a built in protection against cross-site request forgery which basically means that someone gets your recession key so to say he’d be able to to log in or to
To tie check that session shortly briefly described so to have some extra protection with each request we are passing a very specific session key already stored in our yet error in our current session and not in a cookie or something like this and as we add some protection against this these attacks
Therefore I’ll create an input field of type hidden’ and this will have a name of underscore token its name is important otherwise level won’t be able to identify it and a value off again in template expression here session token this syntax here session double colon token is not accessing a static method
In some session class instead session is a Sade and Larry will uses a lot of that besides these are basically just shortcuts cue to other functions to how core functions you could say in a way and we have different objects which have different helper functions and we can
Access them through these facets and a lot of those how the functions or the sales are already injected into our views or are usable in our templating engine here and therefore we can access the session token even though over nowhere in this file like is in any way injecting a session
Object and all this does is it fetches the token of our current session and will store it in this field here which will then be also submitted to our to our yeah and in our request now we don’t have to manually check anything that’ll stand by level automatically we just
Have to edit and put field otherwise you would get an error boo so again lot of talking and theory but I think it’s very very important to get those core concepts right and now let’s see if that works so in my sign up form here now I’ll just enter
Some random email at but first name and then any password click Submit now we ran into an arrow here in our view even though we specified this in input field because it wasn’t actually outputting any data or any token with this command and that is because in my routes file
Here I got this route in this middle work group but I have got my default route now it’s important that I have both routes in a small workgroup because it is dis middle where the webmail where newly added layer of 5 to 2 which will ask the description here says add that
CSRF protection so that’s kind of little where which is useful or which should be used if you’re doing front-end development or if you have like a wearable app which has fronted views and this back-end logic where you opposite would be for example simple restful service where all you would do with your
Lateral application would be consuming routes coming in from all kind of computers and servers and therefore no no sessions going on because as you know rates rest full service don’t have sessions so here we have normal application we have sessions and network therefore we have to use this Web
Middleware for all our routes which are meant to be involved in some kind of sessions going on and let’s and let’s try this again and now this should work yeah don’t get an error let’s look in our database get an entry here and as you can see our password is hashed this
Is not what I entered in this form and yes we created our user and with this user were able to now in the next video create our sign-in form and then actually go a step further than just being stuck at our welcome view but it’s very important to get these basics right
To know how to create users how to access the database and how to submit forms correctly so very very important concepts now one thing we haven’t going on in this form is validation we could pass an empty form here and we obviously obviously don’t want to do this so that will be
Something we’ll also have a look at in the next video so I’ll see you there bye
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
I can't find any tutorial of the class for Laravel 10 😞
Thanks a lottt sir for creating this series 🙂 Already liked and subscribed the channel. Your Udemy courses are also really helpful. I just have a doubt in this 3rd video, I don't have Route.php file in Http folder . Maybe the folder structure is changed. I just installed setup on 15th july 2020. I would be really grateful to you if you could guide me:)
For those who have and going to have a problem with 𝐌𝐞𝐭𝐡𝐨𝐝𝐍𝐨𝐭𝐀𝐥𝐥𝐨𝐰𝐞𝐝𝐇𝐭𝐭𝐩𝐄𝐱𝐜𝐞𝐩𝐭𝐢𝐨𝐧, and you are sure that method in form is correct and you using the right method in web.php route file.
The problem occurs when you have two forms one has and action but the other one does not have, and somehow they get in conflict trough sending. They both need to have action(just make one for the sign-in) or just comment out the sign-in form or just put # in an action of second form. Trust me guys, it works.
Great guide and really well executed! As you know alot of these methods have changed in laravel 7.x and I was wondering if you would update the guide to the current version?
Anyone know how to grab and store values of radio options in the database?
hi i work on laravel 6 and i get that mistake
SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpException
The POST method is not supported for this route. Supported methods: GET, HEAD.
Now, i use laravel 6, it`s very very amazing development of framework.
what did you do to fix the error, right before the end of this video?
i think this is applicable only in this version. I'm trying to use laravel version 5.8 and it's not totally working in the current version. Hope someone can help me solve this problem.
SQLSTATE[HY000] [1045] Access denied for user 'dbuser'@'localhost' (using password: YES) (1045)
please help!!
I have followed the instruction , everything works like should work, but only i can not save the info in my database.
this wat i get. SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: insert into `users` (`email`, `firstnaam`, `password`, `updated_at`, `created_at`) values (nirmalsuraj2@gmail.com, suraj, , 2019-03-11 12:10:23, 2019-03-11 12:10:23)) . help me please.
can you say me which editor are you using please?
iget this error ErrorException (E_ERROR)
Class 'session' not found (View: C:xampphtdocsproject1resourcesviewswelcome.blade.php)
what shall i do
How to solve
SQLSTATE[HY000] [2002] Connection refused (SQL: insert into `users` (`email`, `first_name`, `password`, `updated_at`, `created_at`) values (m, m, $2y$10$NXW5Z10gYfsU/NHEpTZh/eSsKmvMkiGwZjR/ivXHjPnQb/mPFuvaO, 2018-11-22 09:58:08, 2018-11-22 09:58:08))
Hi, your videos are really helpful. i am on laravel 5.7 and i noticed there are different route files. i was able to put this code in api.php
Route::group(['middleware' => ['web']], function () {
Route::post('/signup', [
'uses' => 'UserController@postSignUp',
'as' => 'signup'
]);
});
rest is the same. but when i try to click on submit it says 419 session expired. what am i doing wrong?
What is "namespace" @ 9:50 ? Beginner doubt
For Laravel 5.7 there is no app/routes.php. You now use routes/web.php. When adding the postSignUp route, you no longer use an array. Instead write
Route::post('/signup', 'UserController@postSignUp')->name('signup');
You also do not need to put this inside the web middleware group as this is now handled by the RouteServiceProvider.
You will also need to add a hidden csrf field to the form with @csrf or you will get an error that your session has timed out.
Works well! Thank you!
ReflectionException
Function doesn't exist
can anyone help ?
where i can get the database.. i'm using windows
hello sir in my program The Facade Error Show How To Solve IT
i know this is an older post but has anyone else got a 404 error?
Hi, great tutorial. What editor are you using?
i'm having this problem
MethodNotAllowedHttpException in RouteCollection.php line 218:
could you help me please ?
thanks
Use "$php artisan make:auth" for activate authentication
In the end I have a lot of problems with the web.php.
I dont really know want to write there with this Auth::routes and stuff.
Could somebody help me? :/
geeee, this guy goes on and on and on without actually saying anything – it is a sign the fellow hasn't got clear ideas on what he's talking about
tell you what, with me you wouldn't go past the first 5 minutes of the interview
SQLSTATE[HY000] [1045] Access denied for user 'dbuser'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = laravel-basics and table_name = migra
tions) when run php artisan migrate
If you are using Laravel 7 , Routes are now defined in the Routes folder under web.php
does this work with laravel 5.4? I am having issues
Help here!
just when i am clicking on the "submit" button, there are multiple errors: "/1) NotFoundHttpException" )
inRouteCollection
at Kernel e.t.c
100% Perfectly Worked !!
Thank U Very Much Bro !! 😀
Sir I am having problem in
UserController.php line 7
it says
'AppHttpControllersController' not found
Can you please tell me why this is happening?
When you created the Migration Users, add added the 'db fields' you didn't have first_name,
and at the end when you inserted the value it showed up.
When that field was created ?
To me looks like it was created during a pause time of the video.
After you manually delete the migration run:
composer dump-autoload to clear the cache
I am getting
[BadMethodCallException]
Method varchar does not exist.
error when I run 'php artisan migrate'. It create migration table but doesn't create users table, what should I do?
Thank you for this video!!
thnks
I'm getting "TokenMismatchException" how to get rid of that exception??
What IDE are you using?
When clicking submit i get the error page, 1/1 NotFoundHttpException in RouteCollection.php line 179 , not a clue what i did wrong but then again im running a new version of laravel than this video tutorial.
i am using laravel 5.4 does this work on laravel 5.4?? can i do the same thing u did??
MethodNotAllowedHttpException is the error i get .what must be the problem ? middleware is undefined group so i used the defined route under the default route
Thank you for the time you've spent on this and the great job you've done. Im just starting with Laravel and your video is very useful! Im always respectful to the people like you, who spare their time to share their knowledge
Amazing Tutorial. If anybody having problem with not finding the routes.php for the new Laravel version, the same file exists in routes/web.php i.e the codes of routes.php in the video is to be written in web.php in routes directory.