You are previewing Laravel Starter.
O'Reilly logo
Laravel Starter

Book Description

Definitive introduction to the Laravel PHP web-development framework

  • Create databases and models using Laravel migrations and the powerful Eloquent model

  • Get started with a useful application example that is immediately applicable to real-world applications

  • Learn how to implement powerful relationships with Eloquent

  • In Detail

    Laravel is fundamentally changing the PHP web-development landscape. Laravel is bringing the paradigm-shifts that PHP developers have been craving. We now can take control of our application architecture and advance our craft without needing to fight against our tools. Laravel’s philosophy is to provide a highly flexible architecture and an extremely expressive API while emphasizing PHP’s strengths and abstracting out its weaknesses. For these reasons Laravel is ideal for quickly creating high performance, robust applications. By providing developers with tools for automating tasks including database schema modification, CRUD operations, and testing we’re able to reduce our workload, application complexity, and human-error.

    "Laravel Starter" is the ideal introduction to this game-changing framework. Learn best-practiced approaches to web-application development with Laravel from a seasoned professional.

    It starts out by installing and configuring the framework step-by-step. Then you’ll use Laravel best-practices to create a private user administration system that is ready for real-world use. The later part deals with digging deep into Eloquent relationships, exploring the different relationship types and how Eloquent is working under-the-hood to simplify your life without forcing you to relinquish control. Exploring Laravel’s simple yet flexible authentication system, data validation, and filters allows you to easily run code before and after your controller actions. Finally, it discusses Laravel bundles, the most flexible PHP modular code implementation in its weightclass.

    Focused on the how as much as the why, Laravel Starter gives you the tools to immediately begin creating professional web-applications with Laravel.

    Table of Contents

    1. Laravel Starter
      1. Laravel Starter
      2. Credits
      3. Foreword
      4. About the author
      5. About the reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
      7. www.PacktLib.PacktPub.com
        1. Why Subscribe?
        2. Free Access for Packt account holders
      8. 1. Laravel Starter
        1. So, what is Laravel?
        2. Installation
          1. Step 1 – What do I need?
          2. Step 2 – Downloading Laravel
          3. Step 3 – Configuring hosts
          4. Step 4 – Setting up your VirtualHost
          5. Step 5 – Restarting your web server and testing
          6. And that's it!
        3. Quick start: Creating your first web application
          1. Step 1 – Database configuration
          2. Step 2 – Creating the users table using migrations
          3. Step 3 – Creating an Eloquent user model
          4. Step 4 – Routing to a closure
          5. Step 5 – Creating users with Eloquent
          6. Step 6 – The users controller
          7. Step 7 – Creating the users index view
          8. Step 8 – Passing data from a controller to a view
          9. Step 9 – Adding our dynamic content to the view
          10. Step 10 – RESTful controllers
          11. Step 11 – Creating a form for adding users
          12. Step 12 – Routing POST requests to a controller action
          13. Step 13 – Receiving form input and saving to the database
          14. Step 14 – Creating links with the HTML helper
          15. Step 15 – Deleting user records with Eloquent
          16. Step 16 – Updating a user with Eloquent
          17. Step 17 – Creating the update form with the form helper
        4. Top 5 features you need to know about
          1. 1 – Eloquent relationships
            1. One-to-one relationship
            2. One-to-many relationships
            3. Many-to-many relationships
          2. 2– Authentication
          3. 3 – Filters
          4. 4 – Validation
          5. 5 – Bundles
        5. People and places you should get to know
          1. Articles and tutorials
          2. Community
          3. Twitter