Work with laravel framework

How to work with laravel framework? Can you give some suggestions?

Comments

  • The Laravel framework is MVC framework for PHP applications. It gives the developer beautiful control of the development process by splitting the application into three tiers ->
    1. The Models
    2. The controllers
    3. The Views.

    To run laravel, the following requirements must be met. Not however that the Homestead Virtual Machine satisfies all these requirements.

    PHP >= 5.5.9
    OpenSSL PHP Extension
    PDO PHP Extension
    Mbstring PHP Extension
    Tokenizer PHP Extension

    Laravel uses composer for dependency management. So to use Laravel, we must first have composer installed. To do so visit https://getcomposer.org for installation instructions.

    Then install Laravel using composer with the command

    _composer global require "laravel/installer=~1.1"_

    On succesfull installation, add _ ~/.composer/vendor/bin _ to your path to make the executable available.

    You can however skip that if you prefer to use composer to create your projects.

    How Do I crete A New Project?

    Simple. If you placed the vendor/bin directory in your path, simply run laravel new project_name on your terminal

    If you however prefer to use composer use composer create project laravel/laravel 'project_name' --prefer-dist

    There! you have your new project in your current working directory.

    See you next time.

  • edited July 2015

    If you are following the above tutorial, This line c_omposer create project laravel/laravel 'project_name' --prefer-dist_ should be composer create-project laravel/laravel 'project name' --prefer-dist

    Note the hyphen between create and project

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion