Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to run laravel project


    Create a database locally named homestead utf8_general_ci
    Download composer https://getcomposer.org/download/
    Pull Laravel/php project from git provider.
    Rename .env.example file to .envinside your project root and fill the database information. (windows wont 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 or php composer.phar install
    Run php artisan key:generate
    Run php artisan migrate
    Run php artisan db:seed to run seeders, if any.
    Run php artisan serve

#####You can now access yo

ur project at localhost:8000 :)
Comment

php artisan serve

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

php artisan serve

// run laravel project 
php artisan serve --port="port" --host="host"
Comment

laravel run server

php artisan serve // will use localhost and 8000 port by default
Comment

run laravel without php artisan serve

if your laravel application running in server/hosting, 
just change DocumentRoot pointing to /path/to/your-laravel-app/public
Comment

php run server laravel

Route::get('users', function()
{
    $users = User::all();

    return View::make('users')->with('users', $users);
});
Comment

PREVIOUS NEXT
Code Example
Php :: php integer variable 
Php :: relations in php laravel 
Php :: in php 
Php :: laravel crob job in cpanel 
Php :: password_verify 
Php :: php increment variable by 1 
Php :: laravel route not found 
Php :: Symfony Expected argument of type "string", "null" given 
Php :: php html text before first h2 tag 
Php :: laravel htaccess to remove public from url 
Php :: findOneBy 
Php :: public_path lumen not defined 
Php :: IgasterLaravel ThemeExceptions heme Already Exists 
Php :: @forelse laravel 
Php :: sample test tinker php artisan 
Php :: where post_type like 
Php :: how to add accept and decline button in php form 
Php :: https://stackoverflow.com/questions/34545641/php-artisan-makeauth-command-is-not-defined 
Php :: retrievemultipleimage from database in laravel 
Php :: tina4 save file to database in orm 
Php :: php+js,code 
Php :: static functions php 
Php :: laravel has many deep 
Php :: how to get textbox value in php without submit 
Php :: php get cookie by name preg_match 
Php :: php debug backtrace last function 
Php :: send email to no register user in laravel 
Php :: array issue in php 
Php :: how to add user profile image in my account page in woocommerce 
Php :: subdomain ajax request fail in php 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =