- Create project
- Add dependency
- Platform installation
- Create user
- Start local server
- Static Resource Publishing
- What to do next?
Before you can use the platform you need install it. This guide should help you perform a simple installation to start the project.
Note. If you already have Laravel installation you can skip this step.
Being a package for the framework you must first install Laravel. This can be done using the Composer dependency management tool by running the
composer create-project command in your terminal:
$ composer create-project laravel/laravel orchid-project "6.*" --prefer-dist
For more information how to install Laravel follow Official Laravel Installation Guide.
You don’t have Composer? It’s easy to install by following the instructions on the download page.
This will create a new
orchid-project directory, load the dependencies and generate the main directories and files that you will need to get started.
In other words, install your new framework project.
Do not forget
- Set “chmod -R o + w” rights to the
- Edit the
Go to the created project directory and run the command:
$ composer require orchid/platform
Note. If you just installed Laravel you may need generate a key with command
php artisan key:generate
Note. You also need to create a new database and update the
.envfile with credentials and add the URL of your application to the variable
Run the installation process by running the command:
php artisan orchid:install
To create a user with maximum permissions you can run the following command with a username, email and password:
php artisan orchid:admin admin firstname.lastname@example.org password
If you haven’t installed server (nginx, apache, etc) to run the project you can use the built-in server:
php artisan serve
Open a browser and go to
http://localhost:8000/dashboard. If everything works you will see the control panel login page. Later you can stop the server by pressing
Ctrl + C in the terminal.
Note. If your runtime uses a different domain (eg. orchid.loc) the admin panel may not be available and you need to specify your domain in the configuration file
.envfile. This allows you to make the admin panel available on another domain or subdomain, such as
By default static files (css/js) are delivering through application routes: this is the best balance between configuration and change tracking but you can specify to use web servers for distribution, you need to execute a command that creates a symbolic link in a public directory (Please use it only if your web server is having troubles):
php artisan orchid:link