This book is for anyone who wants to build their first applications in Laravel 10, this writing offers a step-by-step introduction to the framework, knowing the most relevant aspects of it and is focused above all on practice; it is assumed that the reader has the knowledge and has developed PHP and related language technologies, such as JavaScript, HTML and CSS and even similar frameworks; Remember that to use any framework, you have to have the bases that support it, that is, its programming language.
Map
This book has a total of 19 chapters, it is recommended that you read in the order in which they are arranged and as we explain the components of the framework, go directly to the practice, replicate, test and modify the codes that we show in this book.
- Explains what is the necessary software, and its installation to develop in Laravel on Windows with Laragon or on Mac and Linux with Laravel Sail and Docker.
- We will talk about Laravel, we will create a project, we will configure the database, we will know the basic aspects of the framework and finally, we will know the main elements that are the routes.
- We will take the first steps with the routes and the views, to start seeing screens through the browser; we'll also cover using controllers with views; redirects, directives and blade as template engine.
- We will know the use of migrations, as a central element to be able to create the models, which are the layer that connects to the database, to a particular table; and, to have this table, we need the migrations.
- We will get to know the MVC, which is the heart of the framework, and we will make a few examples that will help us to continue advancing.
- We will create a simple CRUD app, we will learn to work with the MVC, resource type controllers, lists, pagination, form validations, and database access among other related aspects.
- We will know how to send flash type session messages which we will use to confirm CRUD operations.
- This chapter is reinforcement, in which we will create a CRUD for the categories in which we have to use everything learned so far.
- This chapter is oriented to learn the use of routes; which in Laravel are very extensible and full of options for groupings, types and options.
- In this chapter, we are going to create an authentication system and all that this entails for our application by installing Laravel Breeze, which also configures Tailwind.css in the project and Alpine.js.
- We are going to expand the scheme provided by Laravel Breeze for authentication, creating a protection based on roles, to handle different types of users in specific modules of the application.
- In this chapter, we will learn about some common Eloquent operations applied to the database using query builders.
- We are going to introduce the use of components in Laravel as a central element to create a modular application.
- We will learn how to generate test data using classes.
- We will learn how to create a CRUD type Rest Api and additional methods to perform additional queries.
- We are going to protect the CRUD type Rest Api with Sanctum, using SPA and token authentication.
- We are going to consume the Rest Api through a CRUD type application in Vue 3 using axios requests and web components with Oruga UI; we will also see the process of uploading files.
- We will learn how to configure Browsersync with Laravel to do automatic application reloads.
- We will protect the application in Vue with login required to access its different modules using SPA authentication or Laravel Sanctum tokens.
By the end of the book, you will have the knowledge to create any basic application with the framework and know more than just the basics of it.
I invite you to visit my website:
desarrollolibre.net
And get to know my work.
Goals
This book provides an introduction to the Laravel web framework, to create your first basic applications.