Laravel 12 book with Tailwind 4, Vue 3 + Intro, Livewire, and Inertia - From scratch

Video thumbnail

Free Upgrade to Laravel 13

Goal

The goal of this book is to guide the reader through the entire process of developing a Laravel web application from initial project creation to final deployment. For this, practical examples will be used to illustrate how the different Laravel components work, and how they can be used in a real web application.

Overall, this book is a comprehensive guide to developing modern and scalable web applications with Laravel. Whether you're a seasoned developer or a beginner, this book will help you improve your programming skills, build scalable applications, and make your development career more exciting and exciting.

This book is for anyone who wants to start developing with Laravel; It is ideal when you are entering the world of programming, you already know how to program in PHP and other similar frameworks such as CodeIgniter and what this language and the technologies that revolve around it such as HTML, CSS and JavaScript and you want to go a step further, you want to start developing in a more professional, efficient, and scalable way over time; although the fact of using Laravel or another framework is not a guarantee that you can take that step, since the most important thing is that you know how to use it, and that is why this book is there, so that you have a progressive advance, from scratch and with a curve of moderate learning; Taking the first steps with Laravel, explaining what each component works for, and doing practice, programming your first application that will surely be the first of many more.

Who is this book for

This book is aimed at anyone who wants to learn how to develop their first applications in Laravel and get to know one of the most famous frameworks for developing web applications with PHP.

  • For those who want to know the framework and who know other similar frameworks in PHP, but do not have the necessary knowledge to venture into these because they do not know the bases that support them.
  • For those people who want to learn something new, learn about a framework that is constantly evolving.
  • For people who want to improve a skill in web development, who want to grow as a developer and who want to continue climbing their path with other frameworks superior to this one; as long as you identify with at least one of the points mentioned above, this book is for you.

 

 

 

 

Laravel is a constantly evolving PHP framework; every week we have releases to correct errors and provide the framework with new features; is a framework that has revolutionized the way developers create modern and scalable web applications; Packages like Inertia, Livewire, Sanctum, Brezee among others are very characteristic of Laravel and it is hard for us to imagine what app development in Laravel would be like without them. Over the years, Laravel has built a huge following for its elegant syntax, features, and an active community.

The main objective of this book is to offer a complete introduction and from scratch of how Laravel works, to know from its installation, going through basic elements such as the structure of the framework until getting to build real applications and in this way teach you how to make the most of its potential. Through practical examples and expert advice, the best practices for web development with Laravel will be discussed.

The book begins with an introduction to basic Laravel features, such as the routing system and controller, and how they can be used to build a simple web application. From there, the book moves towards more complex topics, such as user authentication with Breeze, we also have chapters to manage user authorization, create CRUD systems, connect with Vue, authentication via tokens and much more.

The following sections will explore some of the advanced features of Laravel, such as creating Rest APIs, knowing their routes, creating middleware, and much more, such as communicating the Rest API with an app in Vue 3.

In addition, the book also covers topics such as testing different components of a Laravel application and tips for deploying a complete web application. Finally, the book covers some of the tools and techniques for debugging and maintaining a Laravel web application.

 

 

 

Topics of the book

This book has a total of 22 chapters, it is recommended that you read them in the order in which they are arranged and as we explain the components of the framework, go directly to practice, replicate, test and modify the codes that we show in this book.

  1. Chapter 1: It 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. Chapter 7: We will know how to send flash type session messages which we will use to confirm CRUD operations
  8. Chapter 8: This chapter is reinforcement, in which we will create a CRUD for the categories in which we have to use everything learned so far.
  9. Chapter 9: 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.
  10. Chapter 10: 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.
  11. Chapter 11: 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.
  12. Chapter 12: In this chapter, we will learn about some common Eloquent operations applied to the database using query builders.
  13. Chapter 13: We are going to introduce the use of components in Laravel as a central element to create a modular application.
  14. Chapter 14: We will learn how to generate test data using classes.
  15. Chapter 15: We will learn how to create a CRUD type Rest Api and additional methods to perform additional queries.
  16. Chapter 16: We are going to protect the CRUD type Rest Api with Sanctum, using SPA and token authentication.
  17. Chapter 17: 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.
  18. Chapter 18: We will learn how to configure Browsersync with Laravel to do automatic application reloads.
  19. Chapter 19: We will protect the application in Vue with login required to access its different modules using SPA authentication or Laravel Sanctum tokens.
  20. Chapter 20: We are going to learn how to manage the cache, to save access data to improve application performance and avoid bottlenecks with the database.
  21. Chapter 21: We are going to learn how to manage access policies to certain application modules through Gates and Policies.
  22. Chapter 22: We will see how to handle polymorphism relationships to reuse models that have the same behavior.
  23. Chapter 23: We will see how to manage permissions and roles for a user to authorize certain parts of the application with a flexible scheme widely used in web applications of all kinds.

This is the MOST complete Book on Laravel you will find. We will cover everything, from basic aspects like routes, controllers, views, models, form handling, validations, among others, to more complete aspects like a Rest API with an authentication token (and an app to consume it from Vue),cache management, roles, Gates for permissions, essential packages, and much more.

You can see the Book details at the bottom of this publication, and the best part is that it's an investment for several years, as I will keep the Book updated to new versions and provide greater support through the Academy for free for several years.

I also havefree resources for the Book on the Blog and thecommunity/FREE Book on the Academy website.

If you're looking for a truly complete, practical Laravel 12 Book that can take you from zero to a professional level, let me tell you something from the start: you're in the right place. I've been teaching Laravel for years and updating my Books with every new version, and Laravel 12 has been no exception.
When I say it's complete, I mean it: this Book is equivalent to the book, contains 100% of the content, and I keep it updated for years, at no extra cost for those who already have it.

Along the way, you will create a professional blog, an administrative dashboard, a protected REST API, and finally, a complete SPA in Vue 3. All this with no filler, no unnecessary theory, and with the same methodology I use in my projects.

 

 

About the Book

  • Who is this course for?

    In this course, you will learn from the basics of working with Laravel and its components: PHP, Artisan, using Laravel in conjunction with Node, Vue, and Bootstrap 4 or 5; below, we give you an introduction to what you will see in the course:

    1. People who want to start learning how to use Laravel.
    2. People who already have a basic understanding of Laravel and want to continue learning.
    3. People who want to professionally learn an excellent work tool, being the leader in web development with PHP.
  • Course Requirements

    1. **At least basic knowledge of HTML, CSS, JavaScript, and of course PHP**—by this, I mean that you've ventured to at least create a simple application using these technologies together; beyond that, you don't need other knowledge, but any extra knowledge, like in Node or working with another PHP framework, is more than welcome.
    2. Having a PC with Linux, Windows, or macOS.
    3. A desire to learn and succeed!
  • What can you expect from the course, and what can't you?

    This course offers a structured introduction from scratch to creating your applications in Laravel and its related ecosystem. We will cover the main features of Laravel in version 9 (although some material was recorded with previous versions of the framework) with related technologies such as:

    • Bootstrap 5, for creating visual components, responsiveness, and the general layout.
    • Use of plugins for Node and Vue and some integrations with jQuery.
    • Node for installing packages via NPM and offering a better client-side experience.
    • Vue for creating our SPA (Single Page Application) type website with the Rest API in Laravel.

    We will use these related technologies when necessary to advance in the course; however, the objective of the course is not to teach these related technologies such as Bootstrap 5, Vue, or Node with NPM.

    Although we will see an introduction to each of them and will start from the basics, remember that we will not cover every one of their components, as that would be too much; but we will learn more than the foundations of Laravel and how to leverage the entire Laravel ecosystem, ranging from PHP itself with database integration to the Node ecosystem and, of course, Vue.

 

 

 

Why Learn Laravel 12 Today? (and what makes it so powerful)

Laravel continues to be the most used PHP framework in the world, and not by chance. Each version brings improvements that make development more productive, more elegant, and more scalable. Laravel 12 comes with significant changes in routing, migrations, authentication, and development tools.

Productivity and Modern Ecosystem

Laravel combines the best of backend development with modern frontend tools like Vite, Tailwind, Vue 3, Node, and, of Book, an Eloquent ORM that makes working with databases a pleasure.

What's new in Laravel 12 compared to previous versions

There are optimizations in authentication, new conventions in migrations, improvements in routing, Artisan commands, and adjustments that facilitate large projects.
I've worked with versions since Laravel 5, so I always dedicate part of the Book to showing what's new and what's outdated.

Laravel 12 for Getting a Job and Creating Real Projects

Laravel appears in almost all job offers oriented toward backend development with PHP.
Mastering Laravel 12 opens doors for you as a:

  • backend web developer,
  • full-stack developer with Laravel + Vue,
  • API integrator,
  • creator of modern, scalable applications.

Objective

Laravel is a fascinating, immense framework with a somewhat steep learning curve if it's the first framework of this type you'll encounter.

Laravel offers us several schemes to do the same thing: a web application; through an MVC that is not so much MVC anymore due to the diverse paths you can take; and that's why, the purpose of what's written here: so that your path to learning this framework is less steep and easier to follow.

Laravel is a superb framework that you can use to create truly real and scalable applications over time. When you start working with Laravel, you will realize the enormous amounts of components and functions the framework has. What is not officially part of the framework, there's surely a package that allows you to meet that requirement; and what Laravel doesn't allow you to do on the client side, you can use Node (and its huge ecosystem) with any client-side package, to mention a few:

  • Vue
  • React
  • Angular

To also work on the client side; all this, in the same project.

We will see how to create controllers, components, view models, manage the database through migrations, create real applications, Rest APIs, generate test data, among other fascinating aspects of the framework, and even interconnect Laravel projects with Vue in its version 3.

In short, you will have enormous material at your disposal to build true applications.
 

Unique Advantages of this Book (that you won't find in others)

Here I speak from experience:

  • Updated to Laravel 12 and maintained for years
    • I keep my Books UPDATED. If Laravel 13, 14, or 15 comes out tomorrow, this Book will receive the corresponding updates.
  • Free Community Version Included
    • If you don't have money to start, I always make a 100% freeLITE version with essential classes available.
  • Support, Extra Resources, and Continuous Updates
    • On my blog, I publish tools, examples, snippets, videos, and best practices that expand the Book.

Who this Book is for

This Book is aimed at anyone who wants to start developing with Laravel, although it is not recommended for those who have not worked with other PHP frameworks. If that's your case, I advise you to first learn about and practice with similar but simpler frameworks, such as CodeIgniter 4, for which I have many resources that can help you enter this world of PHP frameworks. You will find more information on my website.

Laravel is an advanced framework. Although I do my best to keep the development simple in the book, remember that you can practice with similar frameworks, like CodeIgniter, for which I also have a book and a Book; which is ideal for getting to know a framework and taking the first steps with this type of technology, as Laravel tends to have a steeper learning curve due to having more components and more abstraction in using them.

  • For those who want to learn about the framework and who know other similar PHP frameworks but lack the necessary knowledge to venture into these because they don't know the underlying bases.
  • For those who want to learn something new, learn about a framework that, although it has a lot of documentation, most of it is in English, and as the framework is constantly evolving, it tends to become outdated.
  • For people who want to improve a skill in web development, who want to grow as a developer, and who want to continue escalating their career with superior frameworks; if you identify with at least one of the points mentioned above, this Book is for you.
  • If you are starting from scratch
    • Don't worry. I have had thousands of students who started with no prior framework experience. I thought of them myself when I designed the Book: each module starts gently, with routes, views, and Blade. Similarly, I have training for a simpler framework like CodeIgniter 4 (free and paid) and also a PHP Book (totally Free).
  • If you already know PHP or frameworks like CodeIgniter
    • You'll feel right at home here. In my case, I come from working with CodeIgniter for years and I know exactly where those migrating to Laravel usually get lost. That's why I dedicate several parts to explaining "why Laravel does things this way."
  • If you want to update and master the modern Laravel + Vue stack
    • In this Book, I incorporate Tailwind, Bootstrap, Node, NPM, Vite, Vue 3, and more.
      When I first integrated Laravel with Vue, I realized that almost no one taught that connection step-by-step... so I prepared a complete module dedicated to it.

 

 

 

 

 

Book Curriculum

As you may know if you've already taken my other paid Books, I always create a theme throughout the Book, and the theme for this Book is a Blog; in this way, for the creation of a simple Blog, we will need three modules:

  • A module for thedashboard.
  • Another foruser control.
  • And a final one which is auser-facing SPA website that will consume data through a Rest API in Laravel.

In Laravel, you can do many things, like building all types of web applications. Laravel is an immense, free framework that allows you to create small to large-scale projects. Among the features we will see in the Book are: interacting with databases, using middlewares, spinning up servers, communicating with the database, interconnecting systems, and integrating with other technologies like Vue. Some of the most important features that can be found in Laravel are:

  • A wide set of features for building web applications
  • A routing system for handling HTTP requests
  • A SQL query builder for interacting with databases
  • Support for middlewares to transform and filter HTTP requests
  • A large number of standard libraries and additional packages available
  • Integration with popular front-end tools and libraries

Book Content

In the Book, we will learn about the framework from scratch to many specific details of Laravel; it is a basic to intermediate Book in which we will briefly cover:

  • Understanding the basic aspects that drive the MVC, such as routes, what each component in Laravel does, and how everything works together.
  • Laravel's template engine, Blade.
  • Migrations.
  • Creating a CRUD module with an authenticated user.
  • Installing and configuring Laravel Breeze, Tailwind.css, and Alpine.css
  • Creating an end-user-facing module.
  • Creation and protection of a Rest API using Sanctum or Passport.
  • Configuring Stripe.
  • And universal aspects of Laravel, including helper functions, libraries, best practices, etc.
  • We will also learn the basics of Livewire or Inertia.
  • We will program with related technologies like Bootstrap 5, Tailwind, Vue, and Node.
  • We will use multiple plugins like CKEditor for rich content, Vuelidate for validations in Vue...
  • Use of cache.

Summary

  • Module 1: Installation, Environment, and Tools
    • Composer, Laravel Installer, server configuration, local environment.
  • Module 2: Framework Fundamentals
    • Routes, Blade, controllers, components, views, helpers.
  • Module 3: Professional CRUD with Authentication
    • Breeze, validations, roles, permissions, form handling.
  • Module 4: Secure REST API in Laravel 12
    • Tokens, authentication, contracts, pagination, error handling.
  • Module 5: Integration with Vue 3 and SPA
    • Vite, components, Axios, API consumption, internal routing.
  • Module 6: Optimization, Security, and Best Practices
    • Cache, storage, Stripe, logs, debugging, clean architecture.

 All these features and many more will be covered in this guide.

 

 

 

Integrating Laravel 12 with Vue 3

 

Laravel is a popular PHP framework that simplifies web application development. As we saw earlier, it has enormous potential and general features.

Vue is a JavaScript library for building interactive user interfaces. It can be used alongside Laravel to build more dynamic web applications.

Both technologies can be worked together, and in this Book, we take the steps to integrate both technologies:

  1. Installing Laravel using Composer.
  2. Installing Vue.js in the Laravel project using NPM.
  3. Configuring Vite with Vue.
  4. Creating Vue.js components and registering them in the Laravel application.
  5. Including the components in Blade templates and using them in the application.
  6. To enable communication between Laravel and Vue.js, you can use HTTP requests using Axios or the Fetch API.
  7. It is also possible to use the integration of Inertia.js and Laravel to create dynamic applications without the need to change the template structure.

 

 

 

Why Learn Laravel

There are several reasons why learning Laravel can be beneficial for you:

Productivity: Laravel is a very powerful tool and the PHP framework par excellence; it allows you to develop web applications quickly and effectively; best of all, it has complements and functionalities everywhere and you will always have a scalable project.

Documentation: Laravel has excellent official documentation, easy to follow, with many examples, and quite extensive; therefore, any questions you have about a library, helper, or general functionality can be found in the official documentation.

Community: Laravel has a large community of developers who use it and contribute to the project; you don't live only on official documentation, you will find an immense amount of information on the Internet about how to do different developments in Laravel; this Book, book, and blog is evidence of what was mentioned above.

Ecosystem: Laravel has an extremely large ecosystem which refers to everything the framework incorporates just by creating a project and also the packages available to us.

Employability: Laravel is a popular framework in the industry; therefore, if you are a web developer, you will surely have job opportunities since PHP is still the most used programming language for developing websites and Laravel is the framework par excellence for PHP.

In summary, Laravel is an extremely popular and productive framework; if you manage to master the framework, it will surely become much easier to get that dream job or that project you want to carry out, and this Book and book are ready for you to help you achieve this objective.

 

  • This Book was updated to Laravel 12, which is the latest version of Laravel to date, incorporating important changes in the definition of migrations, login handling, routing, among other changes that Laravel has had since version 5.
  • You can be sure that I have a commitment to all my Books, which I always try to keep up to date as much as possible; and with Laravel, it is a special case due to its constant evolution.

Conclusion

In this book we will see how to create full stack web applications: App in Laravel together with an application in Vue 3 consuming data from a Rest API; we will see how to create an authentication and authorization system with Laravel Breeze and a CRUD system presenting the benefits that Laravel offers us such as middleware to intercept requests, models to manage the database, validations and other protections in the application.

In short, this book is a comprehensive guide to developing modern web applications with Laravel. Whether you're new to Laravel, a beginner, or experienced, this book will help you improve your programming skills and make your development career more exciting and productive. With Laravel, there are endless possibilities for building web applications, and this book will be your first big step in building efficient, custom web applications.

Without further ado, remember that this is a book for beginners and by the end of the book, you will be able to create any basic application with Laravel 12 and know more than the basics of the framework.

The book is currently in development…

I agree to receive announcements of interest about this Blog.

Presentation of my book to take the first steps with Laravel 12, in which we will see from how to install the framework, its basic structure and present its most important components and create an app.

Algunas recomendaciones:

Benjamin Huizar Barajas

Laravel Legacy - Ya había tomado este curso pero era cuando estaba la versión 7 u 8. Ahora con la ac...

Andrés Rolán Torres

Laravel Legacy - Cumple de sobras con su propósito. Se nota el grandísimo esfuerzo puesto en este cu...

Cristian Semeria Cortes

Laravel Legacy - El curso la verdad esta muy bueno, por error compre este cuando ya estaba la versi...

Bryan Montes

Laravel Legacy - Hasta el momento el profesor es muy claro en cuanto al proceso de enseñanza y se pu...

José Nephtali Frías Cortés

Fllask 3 - Hasta el momento, están muy claras las expectativas del curso

| 👤 Andrés Cruz

🇪🇸 En español