Getting started with Laravel 11, master the most popular PHP framework
Author: Andres Cruz
Publisher: Andres Cruz
Published:
Total Pages: 592
ISBN-13:
DOWNLOAD EBOOKThis book is for anyone who wants to build their first applications in Laravel 11, 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 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 22 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. Chapter 1: The necessary software is explained, and its installation to develop in Laravel on Windows with Laragon or Laravel Herd or on MacOS Laravel Herd and MacOS and Linux with Laravel Sail and Docker. Chapter 2: We will talk about Laravel, we will create a project, we will configure the database, we will know basic aspects of the framework and finally we will know the main element that are the routes. Chapter 3: 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. Chapter 4: 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. Chapter 5: 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. Chapter 6: We will create a simple CRUD app, we will learn to work with the MVC, resource type controllers, lists, pagination, form validations, database access among other related aspects. Chapter 7: We will know how to send flash type session messages which we will use to confirm CRUD operations and session usage. Chapter 8: 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. Chapter 9: 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. Also 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. Chapter 10: In this chapter, we will learn about some common Eloquent operations applied to the database using query builders. Chapter 11: We are going to introduce the use of components in Laravel as a central element to create a modular application. Chapter 12: We will learn to generate test data through classes using the seeder system that the framework incorporates. Chapter 13: We will learn how to create a CRUD type Rest Api and additional methods to perform additional queries. Also we are going to protect the CRUD type Rest Api with Sanctum, using SPA and token authentication. Chapter 14: We are going to consume the Rest Api through a CRUD application in Vue 3 using axios requests and web components with Oruga UI; we will also see the process of uploading files. Also we will protect the application in Vue with login required to access its different modules using SPA authentication or Laravel Sanctum tokens. Chapter 15: We are going to learn how to manage the cache, to save access data to improve application performance and avoid bottlenecks with the database. Chapter 16: We are going to learn how to manage access policies to certain application modules through Gates and Policies. Chapter 17: We will see how to handle polymorphism relationships to reuse models that have the same behavior. Chapter 18: We will see how to manage the permissions and roles of a user to authorize certain parts of the application with a flexible scheme and widely used in web applications of all kinds using Spatie, in this chapter we will learn how to perform this integration and we will develop a module to manage this permissions. Chapter 19: In this chapter, we will see how to manage configurations, environment variables, create help files, send emails and topics of this type that, as we mentioned previously, are fundamental in the development of web applications. Chapter 20: In this chapter, we will learn about important packages in Laravel to generate excels, qrs, seo, PayPal, detect mobile navigation among others. Chapter 21: We will learn how to create unit and integration tests in the Rest Api and the blog-type app using PHPUnit and Pest. (In Dev) Chapter 22: We will talk about how you can push your Laravel application to production. (In Dev) 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.