#2 Laravel Multi Authentication Admin & User Login System | Laravel Advance Ecommerce Project

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ • 135

  • @WebTechKnowledge
    @WebTechKnowledge  2 роки тому +11

    If anyone get this error : Vite manifest not found at Error In Laravel
    Then the solution is You need to leave ' npm run dev ' running while developing . Or you can Run " npm run build "
    If you are having problem with redirecting to Dashboard then check this video for solution : ua-cam.com/video/zodX7tBMeYk/v-deo.html

    • @abdoulbocoum9157
      @abdoulbocoum9157 2 роки тому +1

      want your template
      what i can do for to get it ?

    • @izaanu1233
      @izaanu1233 Рік тому

      I am getting vite manifest not found error while clicking login button.

    • @osamaeid6525
      @osamaeid6525 Рік тому +1

      replace npm run dev with npm run build

    • @chanduraj136
      @chanduraj136 Рік тому +1

      I am getting this error vite manifest and something related to js and css path I tried 'npm run dev ' but its not working

    • @WebTechKnowledge
      @WebTechKnowledge  Рік тому +1

      @@chanduraj136 try npm run build

  • @junaidhassan8296
    @junaidhassan8296 2 роки тому +4

    Please make sure that you use best practices in this series.
    1- add , delet, update products in cart using sessions.
    2- When we add product in cart, and we again add to cart that similar product then quantity of that product in cart should increase, not a row of similar product should be increased in cart.
    3. Orders cancellation and reports monthly reports should me generated. Thanks.

  • @mukizaemma6590
    @mukizaemma6590 2 роки тому +2

    I am so excited for this tutorial. Your tutorials have helped me turning from WordPress templates to using laravel. You have contributed a lot on my web development career. When is the next session getting uploaded please?

  • @miahmohammad5206
    @miahmohammad5206 2 роки тому

    You are the grate Teacher ever.💌

  • @nadeemayesh8413
    @nadeemayesh8413 Рік тому +1

    you can simplify your code more than that for example: the if statement not clear you can make it like this
    return $user_type == 1 ? view('admin.home') : view('dashboard');
    it will work

  • @vishnus2567
    @vishnus2567 Рік тому +1

    Explained well. Thanks❤

  • @MandhojThing
    @MandhojThing 10 місяців тому +1

    can somebody please help me when i login as admin i am being redirected back to dashboard page instead of home page ?

    • @nwokikekelechi2730
      @nwokikekelechi2730 8 місяців тому

      If you noticed, there was a file in app/providers where he changed their route URL from dashboard to redirect. i doubt you did that because with the current directory organisation, there are only three files inside the providers directory unlike his own which has 5, meaning that we don't have the file where he changed dashboard url to redirect url (except if you do then the problem would be from my PC but I doubt that because if u have the complete files like he does then u wouldn't be having any issues). My guess is you skipped the changing dashboard url to redirect and went ahead to write your dashboard route in web.php (which is exactly what i did). Don't know which url u used for your custom dashboard route but if you used dashboard url, then in your web.php, there will be two dashboard URLs meaning one is overriding the other. To overcome that, i commented out their dashboard route so that only my custom route would work.

    • @nwokikekelechi2730
      @nwokikekelechi2730 8 місяців тому +1

      Before replying you, i came to the comment sections to look for solutions because i was facing a problem with the method i mentioned earlier..
      You see, i told you i commented out their custom dashboard route and created mine with the url and function 'dashboard' instead of the 'redirect' that he used in the video (since i don't have the file where he changed dashboard to redirect). What that simply meant was, he removed the dashboard route from where they used it to redirect user after logging in and put his own redirect route instead. meaning that their dashboard route is now useless and isn't doing anything in the code anymore but for us who can't do that because we don't have that file, we simply change the dashboard route by commenting their own and using our own but naming it dashboard instead of redirect. it's still the same thing the only difference is the name of the url and function (dashboard vs redirect) but it works regardless.
      The problem i was facing was that when i logged in as user, it took me to the dashboard and when i logged in as admin with the admin.home being a standalone HTML document, it took me to my admin page but when i copied the contents of the dashboard and pasted it in my admin. home in order to get the logout feature, it threw an error because it couldn't find the named route 'dashboard'. I finally came to comment section after spending 2hrs ransacking every single folder in the project looking for an alternative to that file he has and we don't have so that i can change their dashboard controller logic (wherever it as since jetstream don't use controllers) to ours instead (now i realize how dumb that was). Then as i was explaining earlier, it hit me. We just commented their route and made the system follow ours instead. All i had to do was give our route the name that the system was looking for.
      Route::get('/dashboard',[HomeController::class,'dashboard'])->name('dashboard');
      And it works!!!
      .....for now at least
      I haven't finished the video though but i hope this doesn't have a ripple effect somewhere else
      I hope u understood my elaborate typing😥

    • @nitogravelord8118
      @nitogravelord8118 8 місяців тому

      @@nwokikekelechi2730 Tell me exactly how should web.php code looks like please.

  • @nahidhossen8422
    @nahidhossen8422 2 роки тому

    Complete this video,thank you Web Tech Knowledge.

  • @ojugdsxrsti
    @ojugdsxrsti Рік тому +1

    Why my website always redirect to Dashboard after login, I already changed the Home variable inside the RouteServiceProvider?

    • @Super_Motiviation_G
      @Super_Motiviation_G 11 місяців тому

      the same thing

    • @Super_Motiviation_G
      @Super_Motiviation_G 11 місяців тому

      for me

    • @Hodaka-o2i
      @Hodaka-o2i 10 місяців тому

      did you solve it

    • @nwokikekelechi2730
      @nwokikekelechi2730 8 місяців тому

      i don't know which version of laravel you are using. My version didn't have the RouteServiceProvider but I found a way around it. Check my reply on @MandhojThing comment. Hope it's clear enough for you to understand.

    • @nwokikekelechi2730
      @nwokikekelechi2730 8 місяців тому

      ​@@Hodaka-o2i ​ yes, read my previouse reply

  • @jagdishparihar5900
    @jagdishparihar5900 2 роки тому +2

    when i run npm run dev it shows locaton error global or local

  • @krishu1632
    @krishu1632 9 місяців тому +1

    Usertype =0 also getting redirected to admin page... How to solve this???

  • @agengpujipangestu5302
    @agengpujipangestu5302 9 місяців тому +1

    I logged in but it still went to the dashboard page instead of the redirect page, but when I / logged in it automatically went to the redirect

    • @nwokikekelechi2730
      @nwokikekelechi2730 8 місяців тому

      because you are not using the same version of laravel as he did.
      i found a way around it. look for my reply on @MandhojThing comment. It was quite elaborate but I hope u understand. I'll sent my github link for the finished project when I finish the video

  • @king.salman07
    @king.salman07 Рік тому +1

    dropdown button not working when i click, so it doesn't show manage account like in the minutes 10:09

  • @abirbanerjee5063
    @abirbanerjee5063 Рік тому

    Getting this issue : Could not find package laravel/laravel with version 9.0.* in a version installable using your PHP version, PHP exte nsions and Composer version.

  • @hasanahmed-vb8qp
    @hasanahmed-vb8qp Рік тому +1

    Hi, The configureRateLimiting function is throwing an error, it says it is expecting a colon :S PLEASE HELP!

  • @JJ-ot3ps
    @JJ-ot3ps 2 роки тому

    hi do you have video on laravel 9 breeze as I am working with vue and tailwind together, I saw jetstream does not come with vue though

  • @maxwelljames6406
    @maxwelljames6406 Рік тому

    A great teacher

  • @elvismawira5361
    @elvismawira5361 9 місяців тому

    Hello @WebTechKnowledge. First of all, thanks for this tutorial. I am having problems with migration. I have followed it to the letter, but when I try php artisan migrate, I get this: INFO Nothing to migrate. I have tried searching the web for solutions but can't get any. Any help would be appreciated. Thanks

    • @makpaul4531
      @makpaul4531 9 місяців тому

      check your .env file and try uncommenting DB_ and probably change from sqlite to mysql..basically watch the tut carefully

  • @mahbubulislamatik873
    @mahbubulislamatik873 2 роки тому

    U r the BEST

  • @makpaul4531
    @makpaul4531 9 місяців тому

    Laravel 11 is again different in structure do you think you can do a tutorial on it...thanks

    • @nwokikekelechi2730
      @nwokikekelechi2730 8 місяців тому

      i found a way around it. look for my reply on @MandhojThing comment. It was quite elaborate but I hope u understand. I'll sent my github link for the finished project when I finish the video

  • @mhakash9873
    @mhakash9873 2 роки тому

    Love from the heart bro.....

  • @JivanOdedara
    @JivanOdedara Рік тому +1

    The get method is not supported for this route.supported methods post.

  • @Halogais-ot9ux
    @Halogais-ot9ux Рік тому

    hello sir, sorry I want to ask, at minute 10.09 the nav button doesn't appear down so I can't log out, what's the solution? Thank You

  • @farzanashakeel7758
    @farzanashakeel7758 2 роки тому

    Nice work

  • @etc3625
    @etc3625 Рік тому

    Fantastic

  • @SCSArumugaperumal
    @SCSArumugaperumal Рік тому +1

    brother i was unable to run the command npm run dev.. Is it cause any problem in upcoming videos in this series

    • @WebTechKnowledge
      @WebTechKnowledge  Рік тому +1

      then run ' npm run build '

    • @ArumugaPerumal-vm4gl
      @ArumugaPerumal-vm4gl Рік тому +1

      @@WebTechKnowledge ok bro

    • @sheetalchand8546
      @sheetalchand8546 Рік тому

      @@WebTechKnowledge Hi, neither my npm run dev or npm run build are working. its giving a PostCSS configuration error. "Failed to load PostCSS config;......."

  • @rashidulislamrasel207
    @rashidulislamrasel207 2 роки тому +1

    i face problem as if jetstream style does not work in register,login and dashbord page . then logout problem

    • @hibakarzoun500
      @hibakarzoun500 Рік тому +1

      Did you find a solution to this problem?

    • @duydatpham2002
      @duydatpham2002 Рік тому

      @@hibakarzoun500 same you solve that error yet ?

    • @hibakarzoun500
      @hibakarzoun500 Рік тому

      @@duydatpham2002 yes i solved it , i put in app.blade.php and guest.blade.php this

  • @jiten35
    @jiten35 Рік тому

    video is good. but why you unnecessarily add address an phone number in signup form. you can allow user to fill-up this details after login.

  • @dailyrandom2809
    @dailyrandom2809 2 роки тому +1

    why my login interface is the same of register ? help me plss

  • @christiancolewan
    @christiancolewan Рік тому

    With thousands of data will the system speed remain unaffected?

  • @antudutta5471
    @antudutta5471 Рік тому

    when i try to login as admin, it goes to the user dashboard and it says "usertype" is unknwon word
    can ayone please help

    • @WebTechKnowledge
      @WebTechKnowledge  Рік тому

      Here is the solution : ua-cam.com/video/zodX7tBMeYk/v-deo.htmlsi=FMxUoxWR9DyGPr1j

  • @eyamoonislamnabid3553
    @eyamoonislamnabid3553 10 місяців тому

    There is no logout option in dashboard.. How to fix this problem.. Please help

  • @JayNdungu
    @JayNdungu 2 роки тому

    And thanks a lot for the tutorials

  • @WebTechKnowledge
    @WebTechKnowledge  Рік тому

    If you are having problem with redirecting to Dashboard then check this video for solution : ua-cam.com/video/zodX7tBMeYk/v-deo.html

  • @AustineJuma-j7o
    @AustineJuma-j7o Рік тому

    what happens if both the npm run dev and npm run build dont work and still brings the same error

  • @moraltalesanimation94
    @moraltalesanimation94 11 місяців тому

    My admin page is not redirecting it tooks me to the same user interface what can I do for that?

    • @WebTechKnowledge
      @WebTechKnowledge  11 місяців тому

      Go to config/fortify.php and there give your url

    • @krishu1632
      @krishu1632 10 місяців тому

      Sir change kr diya sabkuch lekin logout option nhi aa raha

    • @nwokikekelechi2730
      @nwokikekelechi2730 8 місяців тому

      It is because you are not using the same version of laravel as he did.
      i found a way around it. look for my reply on @MandhojThing comment. It was quite elaborate but I hope u understand. I'll sent my github link for the finished project when I finish the video

  • @LearnwithAkram39
    @LearnwithAkram39 Рік тому

    u miss auth sir middleware condtion?

  • @knowledgelover4863
    @knowledgelover4863 Рік тому

    no Middleware configuration? to protect admin components?

  • @MUHAMMADSHOAIB-ol8cl
    @MUHAMMADSHOAIB-ol8cl Рік тому

    sir i face that error i try my best but still i did't understand "Vite manifest not found at: C:\xampp\htdocs\internship\laravel\EcommercePro\public\build/manifest.json" can u please to solve my error ? thank u so much

  • @MohamedKhaled-vf1fl
    @MohamedKhaled-vf1fl Рік тому

    I have a problem in redirect in home var after login auth, u know why ??

    • @nwokikekelechi2730
      @nwokikekelechi2730 8 місяців тому +1

      because you are not using the same version of laravel as he did.
      i found a way around it. look for my reply on @MandhojThing comment. It was quite elaborate but I hope u understand. I'll sent my github link for the finished project when I finish the video

    • @MohamedKhaled-vf1fl
      @MohamedKhaled-vf1fl 8 місяців тому

      Thnx 😊

  • @thiadosodre
    @thiadosodre 2 роки тому

    when i clicked in logout i recived this message: The GET method is not supported for this route. Supported methods: POST. can you help me?

  • @findynx
    @findynx Рік тому

    Target class [HomeController] does not exist please help i ran into this problem

    • @WebTechKnowledge
      @WebTechKnowledge  Рік тому

      You need to add controller name at the top in the web.php

  • @mustafaaljasim7226
    @mustafaaljasim7226 Рік тому

    The output for phone, address is Null in the database. Can someone support how can I sort it out ?

    • @WebTechKnowledge
      @WebTechKnowledge  Рік тому

      Add phone & address in the user model.
      Go to app/model/user.php

    • @mustafaaljasim7226
      @mustafaaljasim7226 Рік тому

      I found the problem. It is in RegisteredUserController, It should be updated with phone and address request.
      public function store(Request $request): RedirectResponse
      {
      $request->validate([
      'name' => ['required', 'string', 'max:255'],
      'email' => ['required', 'string', 'email', 'max:255', 'unique:'.User::class],
      'password' => ['required', 'confirmed', Rules\Password::defaults()],
      ]);
      $user = User::create([
      'name' => $request->name,
      'email' => $request->email,
      'password' => Hash::make($request->password),
      'phone' => $request->phone,
      'address' => $request->address,
      ]);
      event(new Registered($user));
      Auth::login($user);
      return redirect(RouteServiceProvider::HOME);
      }
      }

  • @Mansi_7324
    @Mansi_7324 Рік тому

    I can't see the laravel page after doing migration😢

  • @christiancolewan
    @christiancolewan Рік тому

    Sheesh the logout button should be displayed when I click on the auth->name button in the dashboard but it will not open and no error messages

  • @vivekp5458
    @vivekp5458 2 роки тому

    while iam doing this one the style is not working

  • @sudiartohsu3155
    @sudiartohsu3155 2 роки тому

    hi yamin, when i clicked login or register button the page shown so big. how to solve this?

    • @eliezachristopher263
      @eliezachristopher263 2 роки тому +4

      jus replace some codes in Welcome.blade.php and guest.blade.php and test.blade.php with this codes,
      ...styles.....
      @livewireStyles
      ..........scripts..............
      its works like a charm

    • @muhangielioda
      @muhangielioda Рік тому

      @@eliezachristopher263 why for my case...the css of the login and register has failed..?

    • @hibakarzoun500
      @hibakarzoun500 Рік тому

      @@eliezachristopher263
      Thank you so much sir ..i had the same problem and your solution fixed it

  • @md.mehedihasan800
    @md.mehedihasan800 2 роки тому +2

    Please Brother Include Ad Category and Coupon Code Options

  • @pranav8391
    @pranav8391 Рік тому

    View [admin.home] not found.
    Is there any solution?

  • @LearnwithAkram39
    @LearnwithAkram39 Рік тому

    please make video with middleware this

  • @mustafaaljasim7226
    @mustafaaljasim7226 Рік тому

    why $table->string('phone') NOT ->integer('phone') . Isn't phone a number not a text ?

  • @krishu1632
    @krishu1632 10 місяців тому

    RouteServiceProvider wala file nhi create hua.... Iska solution kya hoga?

    • @nwokikekelechi2730
      @nwokikekelechi2730 8 місяців тому

      aisa isalie hai kyonki aap laaravel ke usee sanskaran ka upayog nahin kar rahe hain jaisa usane kiya tha.
      mujhe isake chaaron or ek raasta mil gaya. @mandhojthing tippanee par mera uttar dekhen. yah kaaphee vistrt tha lekin mujhe aasha hai ki aap samajh gae honge. jab main veediyo samaapt kar loonga to main taiyaar projekt ke lie apana jeethab link bhejoonga

    • @nwokikekelechi2730
      @nwokikekelechi2730 8 місяців тому

      hope i tried. i only speak English so i had a hard time detecting your language

  • @anupkaushik9370
    @anupkaushik9370 2 роки тому

    how to get ready to use admin part for ecommerce

  • @motivationalgames
    @motivationalgames 8 місяців тому

    There is no route services provider

  • @jkausar157
    @jkausar157 Рік тому

    after register logout button not show

  • @byzidbaky2228
    @byzidbaky2228 2 роки тому

    Illuminate\Database\QueryException
    Why this error show ?
    please solve it ?

    • @WebTechKnowledge
      @WebTechKnowledge  2 роки тому +1

      did you give database name in the .env file ?

    • @nitogravelord8118
      @nitogravelord8118 8 місяців тому

      Probably commented database in .env. Delete the "#"

  • @Nayan_Dutta
    @Nayan_Dutta Рік тому

    💚💚💚💚💚💚

  • @JayNdungu
    @JayNdungu 2 роки тому

    When should we expect the next video?

    • @WebTechKnowledge
      @WebTechKnowledge  2 роки тому +1

      I am sick right now...i will upload as soon as possible

    • @JayNdungu
      @JayNdungu 2 роки тому +1

      Quick recovery and sorry for that..get well soon

  • @好きな事で生きるプロゲーマー自

    Lesson3:ua-cam.com/video/2OgfE418MXU/v-deo.html

  • @hiclass6272
    @hiclass6272 2 роки тому

    please templates front+bacek

  • @nahidhossen8422
    @nahidhossen8422 2 роки тому

    npm dev ERR!

  • @brodsky8243
    @brodsky8243 2 роки тому

    sorry but i dont undestand your English :/

  • @AnjaliPatel-uw4tf
    @AnjaliPatel-uw4tf Рік тому

    please reply me sir please

  • @king.salman07
    @king.salman07 Рік тому

    i got error Vite manifest not found at: F:\coding\EcommercePro\public\build/manifest.json

  • @neethus5337
    @neethus5337 2 роки тому

    @livewire, @livewire navigation doesn't work. How to fix the problem

  • @adrianocruciani1593
    @adrianocruciani1593 Рік тому +1

    i cant see the curtain once i have to log out. What I've to do?

  • @abdmahirofficial5103
    @abdmahirofficial5103 Рік тому

    why phone and address showing null in the database? plz help