Study Program of Information Systems Faculty of Engineering and Computer Science SY. 2020-2021 Andi Nurkholis, S.Kom., M.Kom. October 05, 2020
2
3 Laravel is a web application framework with expressive, elegant syntax Created by Taylor Otwell as a free open-source PHP web framework, Laravel is meant to ease and accelerate the development process of web applications with a great taste for simplicity.
Laravel uses the MVC model, therefore there are three core-parts of the framework which work together: models, views and controllers. Controllers are the main part where most of the work is done. They connect to models to get, create or update data and display the results on views, which contain the actual HTML structure of the application. 4
5 “The PHP Framework for Web Artisans”
Artisan is the command line tool you can use to control parts of Laravel. There are a lot of commands available to create models, controllers and other resources needed for development. You can also write your own commands to extend the Artisan command line tool. 6
Composer is a dependency manager for PHP, much like NPM for Node or RubyGems for Ruby. But like NPM, Composer is also the foundation of much of our testing, local script loading, installation scripts, and much more. You’ll need Composer to install Laravel, update Laravel, and bring in external dependencies. 7
There are two ways to create a new Laravel project, but both are run from the command line. The first option is to globally install the Laravel installer tool (using Composer); the second is to use Composer’s create-project feature. 8
Alternatively, we can also install Laravel by issuing the Composer create-project command in our terminal: 9 Create new project Newest version Laravel app App name
If we are installing PHP locally and want to use PHP's built-in development server to serve our application, we can use the Artisan serve command. This command will start a development server at http: // localhost: 8000: 10
Andi Nurkholis, S.Kom., M.Kom. September 28, 2020October 05, 2020 Study Program of Information Systems Faculty of Engineering and Computer Science SY. 2020-2021

Web Programming - 3 Laravel Framework

  • 1.
    Study Program ofInformation Systems Faculty of Engineering and Computer Science SY. 2020-2021 Andi Nurkholis, S.Kom., M.Kom. October 05, 2020
  • 2.
  • 3.
    3 Laravel is aweb application framework with expressive, elegant syntax Created by Taylor Otwell as a free open-source PHP web framework, Laravel is meant to ease and accelerate the development process of web applications with a great taste for simplicity.
  • 4.
    Laravel uses theMVC model, therefore there are three core-parts of the framework which work together: models, views and controllers. Controllers are the main part where most of the work is done. They connect to models to get, create or update data and display the results on views, which contain the actual HTML structure of the application. 4
  • 5.
    5 “The PHP Frameworkfor Web Artisans”
  • 6.
    Artisan is thecommand line tool you can use to control parts of Laravel. There are a lot of commands available to create models, controllers and other resources needed for development. You can also write your own commands to extend the Artisan command line tool. 6
  • 7.
    Composer is adependency manager for PHP, much like NPM for Node or RubyGems for Ruby. But like NPM, Composer is also the foundation of much of our testing, local script loading, installation scripts, and much more. You’ll need Composer to install Laravel, update Laravel, and bring in external dependencies. 7
  • 8.
    There are twoways to create a new Laravel project, but both are run from the command line. The first option is to globally install the Laravel installer tool (using Composer); the second is to use Composer’s create-project feature. 8
  • 9.
    Alternatively, we canalso install Laravel by issuing the Composer create-project command in our terminal: 9 Create new project Newest version Laravel app App name
  • 10.
    If we areinstalling PHP locally and want to use PHP's built-in development server to serve our application, we can use the Artisan serve command. This command will start a development server at http: // localhost: 8000: 10
  • 11.
    Andi Nurkholis, S.Kom.,M.Kom. September 28, 2020October 05, 2020 Study Program of Information Systems Faculty of Engineering and Computer Science SY. 2020-2021