This tutorial is based from Laravel 4 - Simple Website with Backend Tutorial and the source code would be available at https://github.com/crynobone/playground. The focus of this tutorial is to show everyone how the website can be done using Orchestra Platform in comparison how you would need to do it with Laravel 4.
$ composer create-project orchestra/platform playground --prefer-dist
This composer command would create a new project for you on
playground folder using the latest stable build,
--prefer-dist is another option that you can use to indicate that you want to download a distributed version instead of cloning the repository, otherwise use
Now let make sure we got Laravel 4 running.
$ cd playground $ chmod -Rf 077 app/storage $ php artisan serve Laravel development server started on http://localhost:8000
php artisan servewould require PHP 5.4.* to work, as a demonstration I would use this technic so we can easily refer to the path.
Installing Orchestra Platform
Now browse to http://localhost:8000, you should see the default Laravel 4 welcome page. Now let install Orchestra Platform, to do that simply browse to http://localhost:8000/admin. You should be able to see the following page:
There a few requirement need to be considered:
- Write access to
- Write access to
public/packagesfolder, an FTP upload is possible as an alternative.
- Database connection.
Usermodel that extends
Setup Database Connection
In my case (and mostly your), we need to configure our database connection. Now let's create a
playground database for our usage.
$ mysql -uroot -proot mysql> create database `playground` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; Query OK, 1 row affected (0.01 sec) mysql> quit Bye
app/config/database.php and configure your connection. Reloading the http://localhost:8000/admin page and you can continue with the installation. Click Next, and you can create the default administrator user.
Hit Submit and your installation is done, how cool is that? Once the installation is done, you no longer have access to view the installation page, but instead redirected to the login page. Now let's try login in as see if that works.
What I just shown you is the most basic requirement to setup the installation, in next chapter we would start using your
app as an extension and what the cool feature that you can use to setup your application with Orchestra Platform.