Laravel

Routes in Laravel – With example

routes laravel

What is Routing Routing is the one  of the main concept of laravel. Route is a way of create URL for your application.  Routes is the web URL of your application #Default route of laravel application:-     <?php     use IlluminateHttpRequest;     use IlluminateSupportFacadesRoute;     /*     |————————————————————————–    

Routes in Laravel – With example Read More »

Create Empty Object In Laravel

create blank object

#Many of ways is to create a blank object in laravel. When a value or object is empty then set blank or empty object in your output. #Type 1 :- $object = (object)array(); Output:- “object”: {} #Type 2 $object = (object)[]; Output:- “object”: {} #Type 3 :- $object = json_decode(‘{}’); Output:- “object”: {} #Type 4

Create Empty Object In Laravel Read More »

How To Upload Image In Laravel?

upload-image

# In this article, we learn how to upload images in the database and project public folder. # I have created a student form and stored the student detail and image. Model & Migration Controller View Routes Storage Link Step 1 :- Create Model php artisan make:model Student Model :- appModelsStudent.php

How To Upload Image In Laravel? Read More »



Laravel Artisan Commands

laravel artisan commands

In Laravel Framework Artisan is a command- line interface. Artisan helps in fast and easy web development. Many commands create with artisan command-line interface for example :- Artisan command for run project : – php artisan serve Artisan command for change port 8000 to 80001 : – php artisan serve –host 127.0.0.1 –port 81 Artisan



Laravel Artisan Commands
Read More »