hi im following this tutor from laracst website the fundamental series episode 15
But Its weird,every thing is new here, i didnt miss last videos,but
in this video the lecturer made many files for Auth tutorial…
for login and register they made many file and views and i havnt
them,in previous episodes i didn see making this files , what should i
to do?..
i should left this episode…or this files is some where and i can
download them?
i mixed up completely!
Which files specifically are you looking for? Laravel comes packaged with four views in the Auth folder in resources/views, and two controllers in the controller Auth folder.
the files of auth was available for laravel 5, but my laravel is 5.1 and havent this files for Auth, how can i get this files?
in the resources and views, we had auth folder,but in laravel 5 + its removed,ho i can get them back?
You don’t have auth.php in your config directory – is that what you’re saying?
i mean i havnt the AuthController and the Auth views for login/register and password reset.
and Laravel doesn’t include those files anymore since 5.1
I see those files in my app directory. They are under app/Http/Controllers/Auth
Hooking these things up can be tricky. I’m actually using the traits and not the default implementations myself for the project I’m currently working on.
“name”: “laravel/framework”,
“version”: “v5.1.25”,
its my laravel version
Post a screenshot of all levels of your http directory underneath the app folder.
look at this one too, i havnt auth views,
in this tutor
mr jeffrey have them all.but i havnt ,and he have some functions like register and login by default,and i havnt them too.
Why don’t you just install a copy of Laravel 5 somewhere and copy those files over to your new installation. So use the command
composer create-project laravel/laravel {directory} "~5.0.0" --prefer-dist
Replace {directory} with the name of the folder you want to use.
The AuthController contains the default code. You will need to create views manually. However, you can get boilerplate registration and login blade templates from the Laravel website.
The views that are referred to in the tutorial are already in the Laravel 5 resources/views/auth folder.
thanks, but i dont know how many of them is changed and i should replace them,and my laravel version is v5.1.25 may be some error accur and im new in this frame work,
but ill,try
now im watin for solution of @oddz
Okay. I don’t think the views will be affected by a minor update from 5.0 to 5.1 though. I could be wrong - you could check the documentation.
If the views are already there than you should be fine. Just try it it out and see what happens. A lot of working with frameworks is just trying things out and seeing how they go than debugging as you run into errors. I set-up a multi-tired authentication layer for the project I’m working on and that was a lot of trial and error. It tends to just come down to not having the right configuration.
yes,but some one in another froum told me this,and his answers couldnt help me 2
yes,but my views havnt auth folder that include, register.blade.php and login.blade.php and others,
i ll try some thing like @WebMachine point
views/auth/login.blade.php
That is where the login form should go.
<!-- resources/views/auth/login.blade.php -->
<form method="POST" action="/auth/login">
{!! csrf_field() !!}
<div>
Email
<input type="email" name="email" value="{{ old('email') }}">
</div>
<div>
Password
<input type="password" name="password" id="password">
</div>
<div>
<input type="checkbox" name="remember"> Remember Me
</div>
<div>
<button type="submit">Login</button>
</div>
</form>
Once you do that you should be able to go to: /auth/login to see the login form.
That logic is handled by this trait and can be changed if needed.
That is the boilerplate implementation.