JSON Web Token (JWT) Authentication via API for Laravel & Lumen.

JWT (JSON WEB TOKEN) JSON Web Token (JWT) is an open standard that allows two parties to securely send data and information as JSON objects. This information can be verified…

Read more »

Query Builder for Beginner In Laravel

1.Find Unique column and avoid duplicate column 3 method using distinct, groupby, pluck command OR OR In above table triptitle field land of rising sun and windy city r unique…

Read more »

Basic Things To Find Error In Laravel

To be master in finding error and build logic to make query, certain things should understand properly (i) check wheather your routing working properly or controller working properly(ii) connection between…

Read more »

How to Use Dropdown Search Functionality with Pagination in Laravel PHP Framework?

Step 1. Firstly, add dropdown in blade file according to below code,here mention name=”city_filter” and id id=”city_filter” step 2:pass id in table tag in step 3: write jquery code that…

Read more »

CRUD Operations in Laravel PHP Framework

Step 1 – Download Laravel 5.8 In first step you have to download Laravel 5.8 version. For this you have to go to command prompt, in which first you have…

Read more »

How to Test Laravel API from Localhost to Android Emulator.

If you are Working with laravel API and and want to test your app in local with android emulator or your mobile Connected to your Computer, so just follow the…

Read more »

[SOLVED] Argument 1 passed to Tymon\JWTAuth\JWT::fromUser() must be an instance of Tymon\JWTAuth\Contracts\JWTSubject

Step 1. Go to config/app.php and add to Providers. Step 2. In your terminal publish the config file:  and add it to your list service providers in app.php Step 3. In…

Read more »

How to protect .env file in Laravel.

Step:1 go to in your project and open .htaccess. Step:2 Then write this code in .htaccess file Step:3 After save you have run this code in your terminal php artisan…

Read more »

How to upload laravel project on cPanel.

Open cpanel what you have url/cpanel Step: 2 Step:3 go to www folder Step:4 then click upload button. Step:5 select your file where you have to file location. as a…

Read more »

How to merge two or multiple tables to each other in the Laravel PHP Framework? (Part-1)

How to merge two or multiple tables to each other in the Laravel PHP Framework? Part-2 Part-3 How to seed Country/State data into the Database? Click Here Here, we are…

Read more »

How to merge two or multiple tables to each other in the Laravel PHP Framework? (Part-3)

Part-1 Part-2 Now, we’ll create the 2nd table State to merge with the Country table. Step 1. Create child file resources/views/State folder with name create.blade.php. Step 2. Create edit.blade.php file. In this file within resources/views/State folder. Step…

Read more »

How to merge two or multiple tables to each other in the Laravel PHP Framework? (Part-2)

How to merge two or multiple tables to each other in the Laravel PHP Framework? Part-1 Part-3 Step 1. Go to app/Country.php. Now, we need to list all the properties…

Read more »

How to use Slug For Custom Url

Slug is used to define custom Url based on the title .it gives users SEO-friendly way to access it through the URL. http://holidaylandmark/city/Mumbai Creating Slug Field in Table: Syntax: Save…

Read more »

How to file upload in DB With local folder using laravel 5.8

Step:1 you have to make these(A) – php artisan make:controller ImageUploadController(B) – php artisan make:model ImageUpload -m Step:2 Open the welcome.blade.php page then write this code. Step:3 Then go to…

Read more »

How to Make a Laravel Desktop Application.

Step:1 go to this url and donwload zip file https://github.com/cztomczak/phpdesktop Step:2 Step:3 Step:4 Step:5 After extract files then folder open and go to in the www folder. and delete all…

Read more »

how can solve 4001 error in a virtual runtime.

  Step:1 got to this path and change this tag.#127.0.0.1 seodaily (seodaily its my project name,whatever you have project name wrtite here on the seodaily place. ) Step:2 go to…

Read more »

How to Store Countries, States, Cities seed classes into the Database in Laravel PHP? (Part-3)

How to Store Countries, States, Cities seed classes into the Database in Laravel PHP Part-1 Part- 2 Step 1. Create a City seeder file. Write down the following command as…

Read more »

How to Store Countries, States, Cities seed classes into the Database in Laravel PHP? (Part-1)

How to Store Countries, States, Cities seed classes into the Database in Laravel PHP? Part- 2 Part- 3 Step 1. Create a Country seeder file. Write down the following command…

Read more »

How to Store Countries, States, Cities seed classes into the Database in Laravel PHP? (Part-2)

How to Store Countries, States, Cities seed classes into the Database in Laravel PHP? Part-1 Part-3 Step 1. Create a State seeder file. Write down the following command as follows:…

Read more »

Create Laravel multiple upload images and Displaying on view

Today , We will build a simple multiple images upload system using Laravel 5.8. We will use a jQuery plugin to populate image field and submit the multiple images to the server. The…

Read more »

How to Create REST API in Laravel.

API is also known as Web services. Web services is very important when you are creating web and Mobile app. You require API in mobile application development. If you Don’t know how…

Read more »

Top 10 Basic Laravel Interview Questions.

Q:-1 What is Laravel? Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern….

Read more »

Special Characters Not Allowed Validation in Laravel 5.8

 let’s see example of laravel validation no special characters. Example -1 use this code for validation:-  ‘name’ =>  ‘required|regex:/^[a-zA-Z]+$/u’ Example:2- Use this code for validation:- ‘applyjobsforuser’ => ‘required|unique:applyjobs,applyjobsforuser’, Example-3 use this code for Spacial characters…

Read more »

How to Scheduling Task using Cron Job in Laravel Application

Laravel Cronjob offers an elegant Task Scheduling or Laravel Cronjob Scheduling mechanism. Applications require some tasks to be run periodically on the server. It could be creating backups or generating…

Read more »

How to set a Default image of the user’s profile image in the Laravel PHP Framework?

How to set a Default image of the user’s profile image in the Laravel PHP Framework? Click Upload Profile Image. Click Remove Old Profile Image. Step 1. Create a new Project…

Read more »

An Error: ReflectionException of the Class CountrySeeder does not exist in Laravel PHP.

Why does this error occur? (ReflectionException : Class CountrySeeder does not exist) Mainly for two reasons: First Reason:– Either, we haven’t created seeder file. Solution Step 1. So, Create seeder…

Read more »

Request Validation in Laravel.

Request Validation using ValidatesRequest Trait in Laravel. (Click to Open) Request Validation using Form Request in Laravel. (Click to Open) Request Validation using Custom Validator in Laravel. (Click to Open)

Read more »

CRUD Operation Using Model in Laravel.

Inserting data in Database through Model. (Click to Open) Read, Update, and Delete data through Model. (Click to Open)

Read more »

CRUD Operation Using Controller in Laravel

How to Insert and Read data from database using Controller. (Click to Open) How to Update and Delete data from database using Controller. (Click to Open)

Read more »

CRUD Operation Using Tinker in Laravel.

How to Insert Data in Database using Tinker in Laravel. (Click to Open) How to Read Data from Database in Tinker. (Click to Open) How to Update and Delete Data…

Read more »