Laravel Flashcards
What is Laravel?
Laravel is a free, open source PHP web application framework, designed for the development of model-view-controller web applications.
What does MVC stand for?
Model-View-Controller
What is homestead?
An official, pre-packaged Vagrant “box” that provides you a wonderful development environment without requiring you to install php, hhvm, a web server, ad any other server software on your local machine.
What is a model-view-controller?
A software architectural pattern for implementing user interfaces. It divides a given software application into three interconnected parts, so as to separate internal representations of information from the ways that information is presented to, or accepted from the user.
Describe the MODEL part of MVC
Captures the behaviour of the application in terms of its problem domain, independent of the user interface. The model directly manages the data, logic and rules of the application.
Describe the VIEW part of MVC.
It can be any output representation of information, such as a chart or a diagram.
Describe the CONTROLLER part of the MVC
Accepts input and converts it to commands for the model or view.
What does Laravel Elixir do?
Provides a clean, fluent API for defining basic GUlp tasks for your laravel application.
Elixir supports several common CSS and JavaScript pre-processors, and even testing tools.
What is Gulp?
A task-runner which uses Node.js
What does Gulp focus on?
Using streams
How do streams work?
In Node, the build in stream module is used by the core libraries and can also be used by user-space modules.
Describe the Blade templating system.
Blade is a simple, yet powerful templating engine provided with Laravel. Unlike controller layouts, Blade is driven by template inheritance and sections. All Blade templates should use the .blade.php extension.
@section(‘content’)
This is my body content
@stop
How do we echo using the Blade templating system
by putting content to be echoed in double curly braces:
{{ $name or ‘Default’ }}
What is the laravel Eloquent Data Model?
The Eloquent ORM included with Laravel provides a beautiful, simple ActiveRecord implementation for working with your database. Each database table has a corresponding “Model” which is used to interact with that table.
How does Eloquent create a primary key for database tables?
Eloquent will also assume that each table has a primary key column named id. You may define a primaryKey property to override this convention.