Laravel is an open-source PHP framework developed following the model-view-controller (MVC) architecture and is based on Symfony. It comes with a large number of features, such as a modular packaging system, orientation towards syntactic sugar, multiple ways to access relational databases and utilities to aid in application deployment. Laravel is a fast-growing framework, and there are a large number of Laravel tutorials through which users can quickly learn Laravel framework. The active Laravel community also helps in improving the quality of the framework continuously.
Prerequisites for learning Laravel
There are many Laravel tutorials available online that can help users learn Laravel programming. These tutorials for Laravel programming provide learning opportunities for users at all stages, starting from beginner level to expert level. However, before you begin with Laravel programming, you must consider all the prerequisites to learning Laravel. Understanding of object-oriented programming and databases is useful for Laravel programming. In Laravel one does not need to deal with a database directly, instead, they use ORM, which requires an understanding of database basics.
Why learn Laravel?
The Laravel framework is acclaimed for its templates that help in creating remarkable layouts with the help of dynamic content seeding. Furthermore, it comes with multiple widgets which incorporate CSS and JS code. Templates in Laravel are designed to help in creating a simple layout with different sections. Besides, Laravel offers a tool for command line known as Artisan, allowing the execution of many repetitive programming tasks which trouble the developers.
How can Hackr.io help you find the best Laravel Tutorials?
If you wish to learn Laravel programming and are looking for Laravel tutorials, Hackr.io can help you. Hackr.io offers a large number of Laravel tutorials that are submitted and recommended by community members, who are programmers as well. To learn Laravel, you can choose from a variety of courses, from free to paid and video to books. Hackr.io offers Laravel tutorial for beginners as well as experts. You can ask questions and share your code snippets to discuss in Hackr community forums. Hackr.io is a community-driven platform, by and for the programmers. Follow Laravel tutorials and courses on Hackr.io to stay informed of the latest news, insights, and tips and tricks.
Introduction to the tutorial on Laravel 5.7 from scratch
Here is a complete guided tutorial that will not only help you understand the various components of the Laravel 5.7 framework but also build your own application using them. The tutorial covers the following -
Initial setup – Installing the Composer and the Laravel installer
Home page creation – Using Basic routing, constructing views with the Blade Layout, using the Blade syntax and passing data to the views.
Controllers-Creating and using controller classes
Database connectivity-Connecting to your database using environment files, understanding Laravel Migrations and using Eloquent for data query
Knowing more about Namespaces and the MVC architecture in Laravel
Directory Project Structure- Understanding the folders that are created on installation of Laravel.
Form Handling-Sending form data to the server and using CSRF Protection (Cross-Site Request Forgery) for security
Core Blocks of the framework–Understanding the Service Container, service providers, configurations and environments and the middleware in depth
Validations– Application of Two Layers of validations, one on the client side and the other on the server side.
Debugging with the help of Laravel Telescope
The tutorial also emphasizes further on routing, resource controllers and cleanups and ends with a brief introduction to testing Laravel applications with TDD.
Here are a few prerequisites for this tutorial-
Introduction to the tutorial - Eloquent By Example
If you know Laravel and would like to learn about its simple but powerful Active Record Implementation feature to work with your database, then you are on the right page.
The 14 free lessons of the tutorial Eloquent By Example will help you learn about Eloquent ORM(Object Relational Mapper) in details and quickly design and create new applications.
The lessons covered in this tutorial are as follows:
Creating and using Migrations to create tables and using Seeders for data cleanups
Creating Eloquent Models, using models in Model Factories and Seeders
Using tinker tools and data transformers
All about Model scopes, soft deletes and traits for sharing properties and methods between classes.
Tricks to push and pull data from the database – Accessors and Mutators
Using Eloquent statements, query builder classes, clauses and grouping
Using Json for passing data in your web application
Eloquent Relationships, all about joins, Many-to-Many relationships and relationship queries
Using the Collection class
Here are a few prerequisites for this tutorial
Introduction to the tutorial - Laravel From Scratch
This well structured Laravel tutorial is a modular series that comprises 13 videos named as ‘Parts’. It covers in details about what you need to know about Laravel to build your own project and deploy it.
Parts(1) and (2) cover the introduction and environment setup.
Part(3) covers Basic Routing and Controllers. You will learn to create some routes and a controller for your pages, and to load a view from a controller function.
Part(4) covers Blade templating and compiling assets. You will learn passing of data, interpolation, adding logic to your views, compiling assets using Laravel Mix(Compiling Sass files to regular css)
Part(5) to (8) cover all about Data. Using MySQl you will learn to work with models and data migrations. Along with fetching data with Eloquent, Creating Forms using Laravel Collective, Saving/Editing and deleting data.
Part(9) covers user authentication
Part(10) and (11) cover creating model relationships and access controls
Part(12) – You will learn how to upload a file for blog posts.
Part(13) Here you will learn how to easily deploy a Laravel application to a shared hosting account with InMotion hosting via Cpanel and FTP.
Laravel version used is 5.4
Introduction to the tutorial - Laravel PHP Create A Social Network
If you want to create your own social network application and you would like to learn it step-by-step then you are on the right page.
This series of 22 videos will help you build a complete social network application with PHP Laravel 5.2 Framework.
Video 1 – Covers the Environment setup and the introduction
Video 2 ,3 – Cover building up a Sign-up and a Login screen, a signup controller and model as well as the necessary database entities
Video 4, 5 – Cover all about user authentication and input validations
Video 6 – Here, you will learn how to apply middleware to routes and how to use it to make certain routes only accessible to authenticated users.
Video 7 to 12– Helps you to create posts, validate new posts, displaying posts, deleting posts, fixing post deletions and dashboard views
Video 13, 15 – Helps you create views to edit posts and then use AJAX requests to post data in the database.
Video 14 – Here you will learn how to use jQuery to fetch the data that you would like to edit.
Video 16 – Helps you to learn how to update a database and view the changes.
Video 17, 18 – You will learn how to make changes to user account details and upload images
Video 19 to 21 – You will learn to incorporate ‘Like’ and ‘Dislike’ mechanism for your post by setting up the backend and configuring the AJAX call.
The last video concludes with the references given below and with an introduction to the forthcoming series of Angular2 on client side with Laravel on the server side.