Category: Laravel

  • Action URL

    Laravel 5.7 introduces a new feature called “callable action URL”. This feature is similar to the one in Laravel 5.6 which accepts string in action method. The main purpose of the new syntax introduced Laravel 5.7 is to directly enable you access the controller. The syntax used in Laravel 5.6 version is as shown −…

  • 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 to the console or an…

  • Pagination Customizations

    Laravel includes a feature of pagination which helps a user or a developer to include a pagination feature. Laravel paginator is integrated with the query builder and Eloquent ORM. The paginate method automatically takes care of setting the required limit and the defined offset. It accepts only one parameter to paginate i.e. the number of…

  • 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 − Explanation of Code Here a new class named “ArtisanCommandTest” is created under test cases module. It includes a basic function testBasicTest which includes various functionalities of assertions. The artisan…

  • Guest User Gates

    The Guest User Gates feature is an add-on to the latest 5.7 version released in September 2018. This feature is used to initiate the authorization process for specific users. In Laravel 5.6, there was a procedure where it used to return false for unauthenticated users. In Laravel 5.7, we can allow guests to go authorization checks by…

  • Understanding Release Process

    Every web application framework has its own version history and it is always being updated and maintained. Every latest version brings new functionality and functions which are either changed or deprecated, so it is important that you know which version will be suitable for your projects. When it comes to Laravel, there are two active…

  • 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. Basic Usage The following screenshot shows how to create a controller named passwordController which is used for storing and…

  • 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 called Cryptography. The text which is…

  • 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 of few commands in Artisan…

  • Authorization

    In the previous chapter, we have studied about authentication process in Laravel. This chapter explains you the authorization process in Laravel. Difference between Authentication and Authorization Before proceeding further into learning about the authorization process in Laravel, let us understand the difference between authentication and authorization. In authentication, the system or the web application identifies its…