Laravel

Laravel: How to Do Comments in Blade Files?

Spread the love

Spread the love          The solution of comments in blade files is simple. You can write comments in your blade files you just need to read this article. Comments in Blade Files are very simple. /* multiple line comments */ // single line comments # simple comments 🙂 blade file comments:  In blade syntax, a comment starts […]

Laravel: How to Do Comments in Blade Files? Read More »

Laravel htaccess – public folder access

Spread the love

Spread the love          If your laravel application is installed at /public_html/laravel you will look inside /public_html/laravel/public and delete the .htaccess file there. Then inside the /public_html/laravel directory make a new file called .htaccess Copy the code below to a new .htaccess file Options -MultiViews RewriteEngine On # Redirect Trailing Slashes… RewriteRule ^(.*)/$ /public/$1 [L,R=301] # Handle Front Controller… RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f

Laravel htaccess – public folder access Read More »

File Upload Validation in Laravel

Spread the love

Spread the love          If you want to create file upload and validation functionality in Laravel 10 web applications. So, in this tutorial,you will learn how to upload file with validation in laravel 10 apps. Please open your controller and paste this code inside your function. public function store(Request $request) { $validatedData = $request->validate([ ‘file’ => ‘required|csv,txt,xlx,xls,pdf|max:2048’,

File Upload Validation in Laravel Read More »

Scroll to Top