Shilpa Kalangutkar has Published 53 Articles

How to access images inside a public folder in Laravel?

Shilpa Kalangutkar

Shilpa Kalangutkar

Updated on 14-Sep-2023 13:33:08

26K+ Views

If you have an image stored in the public folder of Laravel, you can access or, display it in the browser using various methods. In this article, we will learn some of these methods. Assume we have the image of a flower (flower.jpg) stored in the Public folder as shown ... Read More

Find and Delete Files and Directories on Linux

Shilpa Kalangutkar

Shilpa Kalangutkar

Updated on 06-Jun-2023 15:30:47

2K+ Views

In this article we are going to understand about the find command in Linux and also how to use the find command to delete files and directories in Linux. The find command The find command in Linux is a powerful command-line utility tool that helps you search, find or filter ... Read More

Remote File Synchronization in Linux

Shilpa Kalangutkar

Shilpa Kalangutkar

Updated on 06-Jun-2023 15:28:55

259 Views

In this article we are going to understand about the rsync command in Linux that deals with remote file synchronization.This article will provide practical examples on how to use rsync with the most commonly used options. Remote Synchronization or rsync is a powerful command line utility tool that takes care ... Read More

What is middleware in Laravel?

Shilpa Kalangutkar

Shilpa Kalangutkar

Updated on 01-Sep-2022 07:21:44

662 Views

The middleware is a protection layer in laravel. It helps to filter the http request coming down. It acts as the middle layer between request and response. For example − Laravel will check if the user logged in is an authenticated user or not. The request has to pass through ... Read More

How to make Laravel (Blade) text field read-only?

Shilpa Kalangutkar

Shilpa Kalangutkar

Updated on 01-Sep-2022 07:20:11

2K+ Views

Blade is a template engine that helps you to build your view display in laravel. It also helps you to use php code inside the template. The blade templates are saved as filename.blade.php and are stored inside resources/views/ folder. To understand the above question let us create a view calling ... Read More

How to remove a parameter from all Request Objects at Controller Level in Laravel?

Shilpa Kalangutkar

Shilpa Kalangutkar

Updated on 01-Sep-2022 07:17:27

4K+ Views

To get all the field values from the html form you can make use of the Request class. The class Illuminate\Http\Request; has to be included in your controller. Example 1 This example shows the student registration form and it has fields like name, email, age and address. ... Read More

How to validate aninput field if the value is not NULL in Laravel?

Shilpa Kalangutkar

Shilpa Kalangutkar

Updated on 01-Sep-2022 07:14:03

2K+ Views

To validate data you can make use of the Validation class. The validation helps to validate data as well as to display error messages to the user. Example 1 In the example below the make() method is used. The first argument is the data to be validated and the second ... Read More

How to validate exact words in Laravel?

Shilpa Kalangutkar

Shilpa Kalangutkar

Updated on 01-Sep-2022 07:11:53

3K+ Views

To validate data you can make use of the Validation class. The validation helps to validate data as well as to display error messages to the user. To get the exact words to validate you can make use of Rule::in method available with laravel. Using Rule::in method whatever the values ... Read More

How to validate Route Parameters in Laravel?

Shilpa Kalangutkar

Shilpa Kalangutkar

Updated on 30-Aug-2022 14:38:13

9K+ Views

In laravel the routes are defined inside routes/ folder.The routes are defined inside web.php file. The file is created when the laravel installation is done. Laravel routes take in a URI and a closure function as shown below − use Illuminate\Support\Facades\Route; Route::get('/student', function () { return 'Hello ... Read More

How to pass a CSRF token with an Ajax request in Laravel?

Shilpa Kalangutkar

Shilpa Kalangutkar

Updated on 30-Aug-2022 14:18:40

18K+ Views

CSRF stands for Cross-Site Request Forgeries. CSRF is a malicious activity performed by unauthorized users acting to be authorized. Laravel protects such malicious activity by generating a csrf token for each active user session. The token is stored in the user's session. It is always regenerated if the session changes, ... Read More

Advertisements