Mohammad Towhidul Islam

    22-Feb-24 04:39:51 pm

    Laravel10x authentication commands

    STEP 1: composer require laravel/ui STEP 2: php artisan ui bootstrap OR php artisan ui bootstrap --auth STEP 3: npm install && npm run dev STEP 4: php artisan serve STEP 5: http://localhost:8000/...

    Read More


    Mohammad Towhidul Islam

    30-Nov-21 03:39:16 pm

    Laravel 8 calling resource controller function destroy using JQuery ajax

    mydb.sql use test; DROP TABLE IF EXISTS `test`.`roles`; CREATE TABLE `test`.`roles` ( `id` int(10)PRIMARY KEY NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL ) ENGINE=InnoDB; DROP TABLE IF EXISTS `test`.`users`; CREATE TABLE `test`.`users` ( `id` int(10)PRIMARY KEY NOT NULL AUTO_I...

    Read More


    Mohammad Towhidul Islam

    30-Nov-21 03:30:58 pm

    Laravel 8 form post using JQuery ajax call

    form.blade.php <?php $action=url("postform"); echo "<form action='$action' method='post'>"; echo "<input type='hidden' name='_token' value=".csrf_token()." />"; echo "Name: <input type...

    Read More


    Mohammad Towhidul Islam

    05-Sep-21 09:02:20 am

    all kinds of Laravel cache clearing artisan commands

    **After database config >php artisan config:cache Configuration cache cleared! ** Route Cache >php artisan route:clear Route cache cleared! ** View Cache >php artisan view:clear Compiled views cleared! ** Event Cache >php artisan event:cache Cached events cleared! **...

    Read More


    Mohammad Towhidul Islam

    05-Sep-21 08:49:29 am

    Larave Insert ID

    DB::getPdo()->lastInsertId(); $id = DB::table('users')->insertGetId( ['email' => 'john@example.com', 'votes' => 0] ); ...

    Read More


    Mohammad Towhidul Islam

    15-Nov-20 05:54:28 pm

    Run laravel project without public diretory

    Create a .htaccess file to your project folder and write as follows: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -...

    Read More


    Mohammad Towhidul Islam

    05-Aug-20 11:48:28 pm

    Laravel CLR commands for CRUD Operations

    1. To create Model with migration >php artisan make:model LeaveCategory -m 2. To create table with migration file >php artisan migrate --path=/database/migrations/...path.php 3. To make seeder file >php artisan make : seeder LeaveCategorySeeder 4. To insert seeder data >composer d...

    Read More


    Mohammad Towhidul Islam

    01-Mar-18 01:10:58 pm

    Laravel Question & answer

    1. What is Laravel Ans: Laravel is free open source “PHP framewok” based on MVC Design Pattern. It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly. 2. What is Lumen? Ans: Lumen is PHP micro...

    Read More


First12Last
1 of 2 pages
Copyright © 2024. Powered by Intellect Software Ltd