Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to start composer in laravel project on localhost

php artisan serve
  // The original answer is:
  /* 
  The full command works like this:

php artisan serve --host=<host IP address> --port=<port to use>

php artisan serve --host=127.0.0.1 --port=8080
  */
Comment

how to host laravel project on local server

// command to host laravel project on local machine

//php artitan serve --host=your ip address --port=select port
php artisan serve --host=195.154.12.125 --port=8001
Comment

run laravel project on localhost

When you clone the git repo you must follow these steps to run the project:

Create a Database locally
Rename .env.example file to .env inside your project root and fill the database information. (windows won't let you do it, so you have to open your console cd your project root directory and run mv .env.example .env )
Open the console and cd your project root directory
Run composer install
Run php artisan key:generate
Run php artisan migrate
Run php artisan db:seed to run seeders, if any.
Run php artisan serve
Now, your project will run. Good Luck!!
Comment

run laravel project on localhost


When you clone the git repo you must follow these steps to run the project:

Create a Database locally
Rename .env.example file to .env inside your project root and fill the database information. (windows won't let you do it, so you have to open your console cd your project root directory and run mv .env.example .env )
Open the console and cd your project root directory
Run composer install
Run php artisan key:generate
Run php artisan migrate
Run php artisan db:seed to run seeders, if any.
Run php artisan serve
Now, your project will run. Good Luck!!
Comment

PREVIOUS NEXT
Code Example
Php :: laravel blade global variable 
Php :: $loop laravel list 
Php :: include blade file in laravel 
Php :: php add custom button in wordpress editor 
Php :: disable display error 
Php :: php strom key 1 
Php :: how to make a json request in php 
Php :: how to insert data in table and fetch in wordpress 
Php :: get redirect url for laravel socialite with api 
Php :: laravel one session per user 
Php :: Set a minimum subtotal amount in Woocommerce cart 
Php :: php html to pdf 
Php :: php array differ 
Php :: switch php version ubuntu 20.04 
Php :: convert png image transparent into webp php 
Php :: laravel passport client 
Php :: laravel localization 
Php :: php slice array in half 
Php :: array push in php 
Php :: clear session in laravel 
Php :: generate fake name php 
Php :: php get filename 
Php :: utc time php 
Php :: laravel count array 
Php :: jsondecode php array 
Php :: php flip array 
Php :: construct php 
Php :: laravel belongs to 
Php :: session value not removed php 
Php :: Calling itself a static function in php 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =