Laravel Tips


Laravel Tricks is a website created by Stidges and Maksim Surguy as an unofficial repository of tips and tricks for web developers using the Laravel PHP framework.
To see what this is about check out http://www.laravel-tricks.com!

Requirements

The Laravel-Tricks website requires a server with PHP 5.4+ that has the MCrypt extension installed.
The database engine that is used to store data for this application could be any of the engines supported by Laravel: MySQL, Postgres, SQLite and SQL Server.

Quick Start and Installation

To get started and start making something of your own using this repository as a base: download this repository, create an empty database that this application will use, configure a few settings in the app/config folder and enjoy!
Configuration
  • Open up app/config/database.php and configure connection settings for your database.
  • Configure hostname in bootstrap/start.php file to match your machine's hostname:
    $env = $app->detectEnvironment(array(
    
        'local' => array('your-machine-name'), // Edit this line
    
    ));
    
  • If you want to use Github OAuth for login and registration, make sure to create a Github application first and provide its client ID and client secret to the config in app/config/social.php. Also make sure you're using http://<your-site.com>/login/github for Authorization callback URL
After this simple configuration you can populate the database by running a couple commands shown below.
Installation
CD into the directory of this project and run the following three commands:
  1. composer install
  2. php artisan migrate
  3. php artisan db:seed
This will install all Composer dependencies, create the database structure and populate the database with some sample data so that you could see this project in action.

DOWNLOAD

No comments:

Post a Comment