Laravel

    How to create a project with Laravel?

    The Laravel framework is installed in the "frameworks" folder in the installation directory. To run any command, it is necessary to start the BitNami Console. If you are using a Virtual Appliance or AMI, you can run the commands below directly.

    These are the folders that you can find in the laravel folder:

    app  artisan  bundles  conf  CONTRIBUTING.md  laravel  license.txt  paths.php  public  readme.md  storage
    

    In the "conf " folder, you can find the Apache configuration file. You can modify that you change the URL. In the "app" and "laravel" folders are the Laravel files. The "public" folder will be the only available on the web site.

    If you are going to use a database, you can specify the settings in the "app/config/database.php" file.

    To enable the sample application, you should uncomment the following line at the end of the installdir/apache2/conf/bitnami/bitnami-apps-prefix.conf file:

    Include "installdir/frameworks/laravel/conf/httpd-prefix.conf"
    

    Then restart the Apache server and point your browser at http://mydomain/laravel/.

    ./ctlscript.sh restart apache
    

    laravel-welcome.png

    If you intend to use encryption or sessions, you will need the encryption key store in the "app/config/app.php" file:

    'key' => 'random_value_of_32_characters_leght',

    To start a new project, you can edit the file installdir/frameworks/laravel/app/routes.php:

    Route::get('my-first-project', function()
    {
        return 'Hello World!';
    });

    Then restart the Apache server and point your browser at http://mydomain/laravel/index.php/my-first-project/.

    ./ctlscript.sh restart apache
    

    This framework also ships the Laravel documentation where you can find more information about it, in http://mydomain/laravel/index.php/docs/. You can also see online at http://laravel.com/docs/.

    Tag page (Edit tags)
    • No tags
    Pages that link here
    Page statistics
    38510 view(s), 10 edit(s) and 3065 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments

    FileSizeDateAttached by 
     laravel-welcome.png
    Laravel Welcome Page
    19.32 kB10:50, 7 Jun 2013VictorActions
    laravel.png
    No description
    116.52 kB08:55, 16 Oct 2012VictorActions