Different ways for passing data to view in Laravel
Laravel provides different ways to pass data to a view. We can pass data directly from routes or through the controller....
read more
Laravel Import Export Excel file
For web applications, importing Excel sheet data into our database and exporting data from the database into an Excel sheet, is an important feature. Because of this feature, we can easily perform batch import/export data by the web application. It is difficult in other Frameworks but easiest in laravel 8. It gives Maatwebsite/excel package to easily import/export data. In this article, we learn about, how data is exported and imported....
read more
Laravel | Delete Records
To delete records we can use DB facade with the delete method. To do so follow the below steps one by one:...
read more
Which One is Most Demanding Back-End Web Framework between Laravel , Node.js and Django ?
The two back-end web frameworks i.e. Laravel, Django, and the run-time environment NodeJS helps in the development activities. All end up acquiring the same objective, that’s develop a Web Application. What leads to the comparison is:...
read more
Laravel Pagination Customizations
To learn about Customize Pagination, you want to understand the following points....
read more
Laravel | Route::resource vs Route::controller
In Laravel, the Route actions can be controlled by any of the following two methods, either by using Route::resource method or by using Route::controller method. But both of them have their differences. Route::resource: The Route::resource method is a RESTful Controller that generates all the basic routes required for an application and can be easily handled using the controller class. It takes two arguments, where first is the base incoming request URI (Uniform Resource Identifier) and second is the class name of the controller which is used to handle the request. With this method, we get route names and path defined by default with 7 different actions which are required for any application. Note: To get the list of routes created, we have to use the command ‘PHP artisan route: list’ in the command line. Example:...
read more
Laravel | MySQL Database Connection
The database is an important element in any application. Laravel by default provides the support of MySQL. MySQL is a well known, open-source RDBMS (Relational Database Management System)....
read more
Laravel Tutorial
Laravel is an open-source PHP web application framework that has gained big popularity since its beginning in 2011. Created by Taylor Otwell, Laravel embodies the principles of Elegance, Simplicity, and Readability. As a developer-friendly framework, it offers robust features and follows the Model-View-Controller (MVC) architectural pattern....
read more
How to get Client IP address and MAC address in Laravel ?
What is a MAC address?MAC is the abbreviation of “Media Access Control” and it is a 48-bit physical address associated with every networking device. It is printed on the NIC (Network Interface Card) and is globally unique for every networking device. MAC address is used by the data-link layer to route a data packet from source to destination....
read more
Laravel | Artisan Commands to know in Laravel
Artisan is a command-line interface that Laravel provides which helps in making the production process fast and easy. Laravel has its own Command Line interface called Artisan. Its like a Linux command line but the commands are helpful for building a Laravel application. With this command-line tool, we can make models, controllers, and can do data migrations and many more. First, we will have to change the directory in your command line console (i.e. cmd on windows or terminal on Linux/Mac) or any other CLI software, to the directory of your Laravel app....
read more
Laravel | Validation Rules
Validating the data coming from the user’s end is very important as it can help the user in filling proper data and prevent them from submitting any improper or malicious request....
read more
Laravel | Eloquent Model Basics
Laravel is an MVC based PHP framework. In MVC architecture, ‘M’ stands for ‘Model’. A Model is basically a way for querying data to and from the table in the database. Laravel provides a simple way to do that using Eloquent ORM (Object-Relational Mapping). Every table has a Model to interact with the table....
read more