With the next version of MySQL that is MySQL 8, there is a very nice f...
This tutorial shows you client-side searching in an HTML table with jQuery this is a very simple and easy code snippet you can use it in small apps reporting where you want to add fast searching you can use this code snippet its a 10 line of code to make a simple and fast searching so download it or check it in demo.This tutorial shows you client-side searching in an HTML table with jQuery this is a very simple and easy code snippet you can use it in small apps reporting where you want to add fast searching you can use this code snippet its a 10 line of code to make a simple and fast searching so download it or check it in demo.
Laravel 7, 6 pagination example tutorial. In this laravel pagination tutorial, you will learn how to use laravel inbuilt pagination methods with bootstrap tables.Laravel 7, 6 pagination example tutorial. In this laravel pagination tutorial, you will learn how to use laravel inbuilt pagination methods with bootstrap tables. This tutorial will show you how to use laravel pagination with tables and display data with pagination. And also you can add search with pagination in laravel app. Laravel 7/6 Pagination with Tables Just follow below simple and easy steps to use laravel inbuilt pagination methods with a bootstrap table in laravel app. Install Fresh Laravel Setup Database Credentials Run Migration Add Fake Data Create Route, Controller & Blade View Start Development Server 1. Install Fresh Laravel First We need to Download fresh Laravel setup. Use the below command to download the laravel fresh setup on your system. composer create-project --prefer-dist laravel/laravel blog 2. Setup Database Credentials In this step, we need to set the database credential in .env file, so go to your project .env file and set the database credential: laravel datatables configuration.evn 3. Run Migration We need to do the migration of tables using below command: php artisan migrate This command will create tables in our database. 4. Add Fake Records We need to add some records in the database. Use the below command for adding fake records in your database. php artisan tinker After run the php artisan tinker. Use the below command. This command will add 150 fake records in your database factory(App\User::class, 150)->create(); >>> factory(App\User::class, 150)->create(); 5. Create Route, Controller & Blade View Add Route Now we will add routes in web.php file as like below. Open routes/web.php file Route::get('users', 'UsersController@index'); Create Controller We need to create new controller UsersController that will manage two method. lets use this below command and create Controller. php artisan make:controller UsersController Now open the controller let’s go to the => app/Http/Controllers/UsersController.php. Put the below Code
Laravel 7/6 RESTful authentication APIs with passport tutorial. Here, you will learn how to create restful login, registration, get user info auth APIs in laravel with passport.
In this laravel middleware tutorial, we will learn how to create custom middleware and how it use in laravel based project. Simply create one custom middleware and check language in query string.
In this laravel eloquent query methods tutorial. In this tutorial, you will learn laravel eloquents methods like where, whereDate, whereRaw, whereMonth, whereYear, whereIn, whereNotIn, whereNull, whereNotNull, whereTime, havingRaw, whereBetween, whereNotBetween and laravel pluck.
Artisan console is the most useful part of the Laravel Framework. In laravel, an artisan console command-line is a tool to run Laravel commands. If you use these commands, it improves the development speed by providing ready to use scaffolding and required methods. You can save your lot of time using this.
Laravel provides multiple database connections access functionality with it’s very easy and simple.Laravel provides multiple database connections access functionality with it’s very easy and simple. In this tutorial, we would love to share with you how to connect single or multiple databases using a laravel application. Sometimes, we need to connect multiple databases to the Laravel application. Let’s see, how to implement multiple database connections in the laravel app. Table of Contents Prerequisites Without .env Database Connection With .env Database Connection Custom Connection In Migration Custom Connection In Model Custom Connection In Controller Custom Connection with Query Builder Conclusion Prerequisites We need to download the fresh Laravel setup where we will implement our example. Without .env Database Connection In Laravel, a database configuration file is located on “config / database.php”. Here we can set up more than one database connection. If your app uses data from two different MySql databases, you can easily define them.
Macro is the powerful feature of the laravel framework. Macros allow you to add on custom functionality to internal Laravel components like response:: macro, laravel macroable etc. This laravel macro also work with laravel apps.
Laravel multi (auth) authentication- Today we are going to show you, how to create multi auth system in laravel 5.8. Mulitple auth system means multiple users can login in one application according to roles.
Laravel Google Recaptcha – Today we will discuss how to use google rechaptch in laravel application. Basically google recaptch is used to verify the user is human or robots.