Laravel artisan’s tinker is a repl (read-eval-print loop) used to interact with your application and the database . A repl (read-eval-print-loop) is an interactive language shell. It takes/reads in a single user input, evaluates it, and returns the result to the user.
Examples shown below.
Archives: Courses
Courses
#10 Layouts Laravel 5.6
Posted onCreate a directory called layouts inside projectname/resources/views dir and create a layout template file inside of it called app.blade.php and write below codes: The above template can be used in any view file using a syntax The @section directive, defines a section of content meaning its used to inject content while the @yield directive is used to display the contents of a
#9 Blade Templates Laravel 5.6
Posted onBlade is the simple, yet powerful templating engine provided with Laravel. Unlike other popular PHP templating engines, Blade does not restrict you from using plain PHP code in your views. In fact, all Blade views are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your application. Blade view files use the .blade.php
file extension and are typically stored in the resources/views
directory.
#8 What are Models | Migration files in Laravel 5.6 Tutorial
Posted onThe Model represents your data structures. Typically your model classes will contain functions that help you retrieve, insert, and update information in your database.
#7 What are Controllers in Laravel 5.6
Posted onThe Controller serves as an intermediary between the Model, the View, and any other resources needed to process the HTTP request and generate a web page
#6 What are Views in Laravel 5.6
Posted onCreating a View file All view files should have an extension of .blade.phpLets create a view file called about.blade.php inside projectname/resources/views Now lets create a route for this file inside projectname/routes/web.php file by defining the below method Its preferebale to keep your view files into separate folders so if you create the folder called myviews
#5 What are Routes in Laravel 5.6
Posted onThe router allows you to register routes that respond to any HTTP verb:
#4 Directory Structure in Laravel 5.6
Posted on#3 Create Laravel Project using Valet and run it
Posted onInstall laravel on valet and run your project on valet Run mysql on valet
#2 How to install and run Laravel
Posted onInstall Laravel on localhost MAMP You can also install it using create-project command like so :