Laravel Namespaces

Namespaces can be defined as a class of elements in which each element has a unique name to that associated class. It may be shared with elements in other classes. Declaration of namespace The use keyword allows the developers to shorten the namespace. use <namespace-name>; The default namespace used in Laravel is …

Read More »

Laravel Middleware

Middleware acts as a bridge between a request and a response. It is a type of filtering mechanism. Laravel includes a middleware that verifies whether the user of the application is authenticated or not. If the user is authenticated, it redirects to the home page otherwise, if not, it redirects …

Read More »

Laravel Routing

In Laravel, all requests are mapped with the help of routes. Basic routing routes the request to the associated controllers. Routing in Laravel includes the following categories − Basic RoutingRoute parametersNamed Routes Basic Routing All the application routes are registered within the app/routes.php file. This file tells Laravel for the URIs it …

Read More »

Laravel Configuration

Environment variables are those which provide a list of web services to your web application. All the environment variables are declared in the .env file which includes the parameters required for initializing the configuration. While working with basic configuration files of Laravel, the following points are to be noted − The .env file should …

Read More »

Laravel Installation

Laravel uses composer, for managing dependencies. Make sure you have a Composer installed on your system before you install Laravel. The steps are given below for installing Laravel − Step 1 − Visit the following URL and download composer to install it on your system. https://getcomposer.org/download/ Step 2 − After the Composer is installed, …

Read More »

Features of Laravel

Laravel is one of the most popular frameworks having a high rich set of functionalities. it’s provided with a well-defined toolbox that allows the developers to write less code leading to less possibility of errors. The following feature are below- Authentication User authentication is a common feature in web applications. …

Read More »

Laravel Tutorial

We provides basic and advanced concepts. This Laravel tutorial is designed for beginners and professionals. Laravel is an open-source PHP framework. It also offers the rich set of functionalities that incorporates the basic features of PHP frameworks such as Codelgniter(CI), Yii, and other programming languages like Ruby on Rails. What is …

Read More »

PHP String Functions

PHP provides various string functions to access and manipulate strings. addcslashes() – It is used to return a string with backslashesaddslashes() – It is used to return a string with backslashesbin2hex() – It is used to converts a string of ASCII characters to hexadecimal valueschop() – It removes white space …

Read More »

PHP String

PHP string is a sequence of characters i.e., used to store and manipulate text. There are 4 ways to specify a string literal in PHP. single quoted – We can create a string in PHP by enclosing the text in a single-quote. For specifying a literal single quote, escape it …

Read More »