Home » Laravel Tutorial

Laravel Tutorial

Laravel – Dump Server

Laravel dump server comes with the version of Laravel 5.7. The previous versions do not include any dump server. Dump server will be a development dependency in laravel/laravel composer file. With release of version 5.7, you’ll get this command which includes a concept out-of-thebox which allows user to dump data …

Read More »

Laravel – Artisan Commands

Laravel 5.7 comes with new way of treating and testing new commands. It includes a new feature of testing artisan commands and the demonstration is mentioned below − class ArtisanCommandTest extends TestCase{ public function testBasicTest() { $this->artisan('nova:create', [ 'name' => 'Admin panel' ]) ->expectsQuestion('Please enter your API key', 'apiKeySecret') ->expectsOutput('Authenticating...') …

Read More »

Laravel – Hashing

Hashing is the process of transforming a string of characters into a shorter fixed value or a key that represents the original string. Laravel uses the Hash facade which provides a secure way for storing passwords in a hashed manner. The following lines of code explain the functionality and usage of the passwordController − …

Read More »

Laravel – Encryption

Encryption is a process of converting a plain text to a message using some algorithms such that any third user cannot read the information. This is helpful for transmitting sensitive information because there are fewer chances for an intruder to target the information transferred. Encryption is performed using a process …

Read More »

Laravel – Artisan Console

Laravel framework provides three primary tools for interaction through command-line namely: Artisan, Ticker and REPL. This chapter explains about Artisan in detail. Introduction to Artisan Artisan is the command line interface frequently used in Laravel and it includes a set of helpful commands for developing a web application. Example Here is a list …

Read More »

Laravel – Authorization

In authorization, the system or the web application checks if the authenticated users can access the resources that they are trying to access or make a request for. In other words, it checks their rights and permissions over the requested resources. If it finds that they can access the resources, it …

Read More »

Laravel – Authentication

Authentication is the process of identifying the user credentials. In web applications, authentication is managed by sessions which take the input parameters such as email or username and password, for user identification. If these parameters match, the user is said to be authenticated. Command Laravel uses the following command to …

Read More »

Laravel – CSRF Protection

CSRF refers to Cross Site Forgery attacks on web applications. CSRF attacks are the unauthorized activities which the authenticated users of the system perform. As such, many web applications are prone to these attacks. Laravel offers CSRF protection in the following way − Laravel includes an in built CSRF plug-in, …

Read More »

Laravel – Contracts

Laravel contracts are a set of interfaces with various functionalities and core services provided by the framework. For example, Illuminate\Contracts\Queue\Queue contract uses a method which is needed for queuing jobs and Illuminate\Contracts\Mail\Mailer uses the method for sending emails. Every contract defined includes corresponding implementation of the framework. All the Laravel contracts are available in …

Read More »