O'Reilly logo

Learning Laravel 4 Application Development by Hardik Dangar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up our user section

To set up our user section, we will create user layout and the following files in the views directory:

  • /view/layouts/user.blade.php: Main user layout file
  • /view/user/register.blade.php: Registration page
  • /view/user/login.blade.php: Login page
  • /view/user/changePassword.blade.php: Change password page
  • /view/user/dashboard.blade.php: Dashboard page

Here all the pages will extend the user.blade.php file. Let's create our user.blade.php file.

<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>{{ $title }}</title> <meta name="viewport" content="width=device-width"> <link href='//fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required