What sets Laravel apart from other PHP web frameworks? Speed and simplicity, for starters. This rapid application development framework and its ecosystem of tools let you quickly build new sites and applications with clean, readable code. Fully updated to include Laravel 10, the third edition of this practical guide provides the definitive introduction to one of today's most popular web frameworks. Matt Stauffer, a leading teacher and developer in the Laravel community, delivers a high-level overview and concrete examples to help experienced PHP web developers get started with this framework right away. This updated edition covers the entirely new auth and frontend tooling and other first-party tools introduced since the second edition. Dive into features, including: Blade, Laravel's powerful custom templating tool Tools for gathering, validating, normalizing, and filtering user-provided data The Eloquent ORM for working with application databases The Illuminate request object and its role in the application lifecycle PHPUnit, Mockery, and Dusk for testing your PHP code Tools for writing JSON and RESTful APIs Interfaces for filesystem access, sessions, cookies, caches, and search Tools for implementing queues, jobs, events, and WebSocket event publishing Specialty packages including Scout, Passport, Cashier, and more
This 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.
You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: laravel It is an unofficial and free Laravel ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official Laravel. The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.
This book is intended for PHP web developers who have an interest in Laravel and who know the basics of the framework in theory, but don't really know how to use it in practice. No experience of using frameworks is required, but it is assumed you are at least familiar with building dynamic websites in PHP already.
This book is aimed at anyone who wants to start developing with Laravel Inertia whose main advantage is that, we can use Vue components, as if they were blade views and with the added advantage of having all the power of Vue together with Laravel. For those people who want to learn something new, learn about a tool with little documentation and most of it is in English. For people who want to improve a skill in web development, who want to grow as a developer. As long as you identify with at least one of the points mentioned above, this book is for you. Map This book has a total of 16 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: In this chapter we are going to learn about the Laravel Inertia tool and what it offers us when developing web applications. Chapter 2: In this chapter we are going to create a project in Laravel Inertia. Chapter 3: In this chapter we are going to learn about the characteristics that a project has in Laravel Inertia, both the structure that a project brings by default, and its base operation. Chapter 4: In this chapter we are going to create the typical CRUD to learn the basics of Laravel Inertia and its communication with components in Vue. Chapter 5: In this chapter we are going to learn about the use of redirections and flash messages. Chapter 6: In this chapter we are going to create the CRUD process for the posts, taking all the topics covered in the previous chapters. Chapter 7: In this chapter we are going to learn about the upload process in Laravel Inertia and using third-party plugins. Chapter 8: In this chapter we are going to install third-party plugins using Vue, specifically the CKEditor plugin. Chapter 9: In this chapter we are going to get to know the confirmation dialogs and toast messages of Laravel Inertia and using third-party plugins. Chapter 10: In this chapter we are going to know the communication between components of components used directly from Laravel, for that, we will create a form step by step. Chapter 10: In this chapter we are going to know the communication between components of components used directly from Laravel, for that, we will create a form step by step. Chapter 11: In this chapter we are going to implement filters and a search field for a list from the administration module. Chapter 12: In this chapter we are going to implement the ordering of columns of a table in a list from the administration module. Chapter 13: In this chapter we are going to create the blog module for the end user, a list and a detail page. Chapter 14: In this chapter we are going to create a shopping cart, which includes the typical CRUD and screens. Chapter 15: In this chapter we are going to explain some essential options that we can use when sending requests through the Inertia object. Chapter 16: In this chapter we are going to create a CRUD to do list type application with reordering via Drag and Drop. The book is currently in development, so there will be more chapters in the future.
Laravel is a fascinating framework, huge and with a somewhat steep learning curve and with multiple options; this book is not for beginners and assumes that you already know how to program in Laravel. Laravel Livewire takes Laravel development a step further; automating routine processes in very flexible schemes based on components, Livewire components that allow us to communicate client and server in a very simple, efficient and easy way. Laravel Livewire is not a framework, it is just a layer or scaffolding that adds certain extra features to the framework that we can use to create great applications, with less effort and development time. Map We are going to give a brief introduction about Laravel Livewire. We are going to create our project in Laravel Livewire. We present the characteristics that a project created in Laravel Livewire has; team management, API Tokens, and authentication, are some of them. We are going to create a simple CRUD type application and get to know all the elements of Livewire such as handling forms, views and directives through the Livewire components. We are going to work on the style, improving the created application so that it looks like another Laravel Livewire module. We are going to learn about the communication between Livewire components based on events; detect changes in properties of the component class from the view and know the Laravel Livewire JavaScript. We are going to create the CRUD for the posts. We are going to create filters and search fields for a listing taking advantage of the benefits of Livewire. We are going to create sort fields for the column listing. We will get to know everything that Livewire offers us in JavaScript and combine it with other plugins, we will know the hooks in JavaScript, consume properties, functions and use of events. We are going to learn about some extra features of Laravel Livewire properties, such as customizing the update phase of wire:models, such as the use of computed properties. We are going to create a simple blog-type application with a list with filters and search and detail fields. We are going to create a shopping cart in the session and database, for which, we will see communication between components, sending events, toast type plugin to show messages confirming the operation carried out, with listeners of the events from JavaScript. We are going to show the code of an application created with Alpine.js to create a to do list component. We are going to adapt the Alpine.js application presented in the previous chapter, to work in conjunction with Livewire. By the end of the book, you will have the knowledge to create any basic application with Livewire and know more than just the basics of it. I invite you to visit my website: desarrollolibre.net And get to know my work.
This book is a practical, task-based, step-by-step tutorial that demonstrates topics ranging from MVC code-separation, to code-modularity, to utilizing ActiveRecord for data abstraction which are explained from the ground-up to provide a strong framework of understanding for creating professional web-applications with Laravel. This book is ideal for programmers familiar with PHP who are interested in learning the Laravel way of solving the common problems faced in their day to day work.
What sets Laravel apart from other PHP web frameworks? Speed and simplicity, for starters. This rapid application development framework and its ecosystem of tools let you quickly build new sites and applications with clean, readable code. Fully updated to cover Laravel 5.8, the second edition of this practical guide provides the definitive introduction to one of today’s mostpopular web frameworks. Matt Stauffer, a leading teacher and developer in the Laravel community, delivers a high-level overview and concrete examples to help experienced PHP web developers get started with this framework right away. This updated edition also covers Laravel Dusk and Horizon and provides information about community resources and other noncore Laravel packages. Dive into features, including: Blade, Laravel’s powerful custom templating tool Tools for gathering, validating, normalizing, and filtering user-provideddata The Eloquent ORM for working with application databases The role of the Illuminate request object in the application lifecycle PHPUnit, Mockery, and Dusk for testing your PHP code Tools for writing JSON and RESTful APIs Interfaces for filesystem access, sessions, cookies, caches, and search Tools for implementing queues, jobs, events, and WebSocket event publishing
This book will help you gain practical knowledge of building modern full-stack web apps from scratch using Angular with a Laravel back end. You will learn the most important technical facets of developing with Angular and Laravel, and demonstrates how to put those skills into practice.
A recipe-based book to help you efficiently create amazing PHP-based applications with Laravel 5.x About This Book Leverage the amazing new features of Laravel 5.x to create cutting-edge responsive PHP applications. Create apps with interoperability features and extend these features to your existing applications as well. Over 60 recipes that combine tried and tested Laravel tips for getting your app working. Who This Book Is For The ideal target audience for this book is PHP developers who have some basic PHP programming knowledge. No previous experience with Laravel is required for this book. What You Will Learn Optimize Your Gulp and Elixir Workflow Use Travis to run tests with every push Build and test your view-based route in PHPUnit Explore workflows for migrations and seeding Implement Angular in your Laravel applications Set up a user authentication system Integrate the new Billing library and Stripe in your Laravel application Use the Artisan command-line tool Test your App in Production with Behat In Detail Laravel is a prominent member of a new generation of web frameworks. It is one of the most popular PHP frameworks and is also free and an open source. Laravel 5 is a substantial upgrade with a lot of new toys, at the same time retaining the features that made Laravel wildly successful. It comes with plenty of architectural as well as design-based changes. The book is a blend of numerous recipes that will give you all the necessary tips you need to build an application. It starts with basic installation and configuration tasks and will get you up-and-running in no time. You will learn to create and customize your PHP app and tweak and re-design your existing apps for better performance. You will learn to implement practical recipes to utilize Laravel's modular structure, the latest method injection, route caching, and interfacing techniques to create responsive modern-day PHP apps that stand on their own against other apps. Efficient testing and deploying techniques will make you more confident with your Laravel skills as you move ahead with this book. Towards the end of the book, you will understand a number of add-ons and new features essential to finalize your application to make it ready for subscriptions. You will be empowered to get your application out to the world. Style and approach This book will have a practical recipe-based approach with dedicated recipes on your daily Laravel tasks (as well as on more advanced issues) that will help you become a pro with Laravel 5.x