N
N
ninja op op2020-06-02 23:25:51
open server
ninja op op, 2020-06-02 23:25:51

How to install Laravel 5 on Open Server?

How to install Laravel 5 (namely 5) on an open server?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Igor, 2020-06-02
@kur4chyt

Read the documentation! In the Laravel documentation, there is a selector in the upper right corner to switch versions. Switch to 5 and read the right section of the documentation!
Laravel 5.0 installation

composer create-project laravel/laravel {directory} "5.0.*" --prefer-dist

You can also read the Composer documentation. You can install everything via composer.json with content like this:
{
    "require": {
        "laravel/laravel": "5.0.*"
    }
}

In the console composer install
and you're done

Y
Yaroslav Alexandrov, 2020-06-03
@alexyarik

Here is an instruction with explanations, you can practice, the example uses the laravel5-example project from github.
In the opserver, open Advanced - Console, paste all the commands in the console, if there are errors, look and correct.
Installation
// on the open server, go to the domains folder
cd domains
// go to the domain (project) folder
cd projectname
// install laravel if necessary
composer create-project --prefer-dist laravel/laravel <project_name>
//Copy the project
git clone https ://github.com/bestmomo/laravel5-example.git projectname
// if necessary, if you need to install or update composer
composer install
// key generation
php artisan key:generate
//create a database in phpadmin and specify access data
in the .env file
//migration of the database
php artisan migrate --seed //to create and populate tables
//set additional project features
Inform config/mail.php for email sends
php artisan vendor:publish to publish filemanager
//end
php artisan serve

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question