Skip to main content

Posts

Showing posts from November, 2022

Build laravel crud using infyom laravel generator

Installation of Laravel First you need to install laravel by running below composer commands     composer create-project laravel/laravel example-app After creating project run artisan command to initialize development server     cd example-app     php artisan serve Now you can access your application in your web browser at http://localhost:8000 Installing Infyom laravel generator Now you need to install laravel generator by infyom. Add following packages into composer.json while using it with Laravel 9.     "require": {                  "infyomlabs/laravel-generator" : "^5.0",                  "infyomlabs/adminlte-templates" : "^5.0"      } if you want to use Generate from table option, you need to install       "require": {                  "doctrine/dbal" : "^2.3"     ...

Remove public from url laravel 5.4

Step 1: Rename File In first step it is very easy and you need to just rename file name. you have to rename server.php to index.php at your laravel root directory. server.php INTO index.php Step 2: Update .htaccess first of all you have to copy .htaccess file and put it laravel root folder. You just copy .htaccess file from public folder and then update bellow code: .htaccess Options -MultiViews -Indexes RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f Rewr...