PHP Laravel 5 login tutorial with mysql database. laravel tutorials.




php laravel ,laravel 5 tutorials ,laravel auth and laravel login page demo with mysql DB .its very easy to setup database and make a login module with laravel 5 …

Original source


37 responses to “PHP Laravel 5 login tutorial with mysql database. laravel tutorials.”

  1. i am one of ur subscriber, i want you to make a video on given task below.. plz do it as soon as possible so that we all your viewers will be benefited

    Please create three pages in LARAVEL.

    Task list:
    1) Create page to add news. Fields are news title, description and news picture.
    – Validate below fields:
    – news title (required)
    2) On page submit, redirect news to 'Success' page and display entered news's title on screen.
    3) Create another page where all news will be listed with news title and uploaded pic in list view. If news click on news name then it will redirect to news detail page where you need to display all news's data.

    Note:
    1) Page should have common header with logo and menu with link to add news and view news list.
    2) All data should be stored in database.
    3) For validation, use Laravel inbuild validation functionality

  2. hi amit, i am new to lavarel. i tried to create login using ur videos. but i am getting error on "object not found". it shows the login page with username and password but when I clicked on it. it say "object not found". can u pls help. i found that ur routes.php is in http folder but i have folder routes–>web.php. pls help me to sort it.

  3. Superb for the Fresher ,
    In case if
    DB::table('users')->where(['email'=>$username])->get(); // this line not work
    try
    DB::table('users')->where(['email'=>$username])->get(); // use backslash before then it will work proper. its bcoz of namespace Problem

  4. it not work for me, i got some error (1/1) FatalErrorException
    syntax error, unexpected '>'

    in loginController.php (line 15)
    how to resolve amit?
    <?php

    namespace AppHttpControllers;

    use IlluminateFoundationBusDispatchesJobs;
    use IlluminateRoutingController as BaseController;
    use IlluminateFoundationValidationValidatesRequests;
    use IlluminateFoundationAuthAccessAuthorizesRequests;

    class loginController extends BaseController
    {
    public function login(Request $req)
    {
    $username = $req- >input('username');
    $password = $req- >input('password');

    $checkLogin = DB::table('user')- >where(['username'=>$username,'password'=>$password])- >get();
    if(count($checkLogin) >0)
    {
    echo "Login Successfull<br/>";

    print_r($req- >input());
    }
    else
    {
    echo "Login Failed Wrong Data Passed";
    }

    }
    }
    please reply my comment and help

Leave a Reply