Tag

Laravel 7

Browsing

How To Generate Barcode In Laravel 8 Step 1: Create the application We need to run command to create Laravel 8 projects. composer create-project –prefer-dist laravel/laravel laravel-8-barcode-generator https://www.youtube.com/watch?v=ob2gMikwJnI&t=6s Step 2: Install picqer/php-barcode-generator Package composer require picqer/php-barcode-generator Step 3: Create Route Now I am going to create route for calling controller and function. routes/web.php <?php Route::view(‘barcode’, ‘barcode’); Step 4: Create Blade file resources/views/barcode.blade.php <!DOCTYPE html> <html> <head> <title>Barcode Generator In Laravel 8 </title> <!– CSS only…

Adding Toastr Notifications to your Laravel App However you decide to include it in your project you will then need to add the location to the 2 files in the <head> tag of your master layout file like so: <script src=”//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.js”></script> <link rel=”stylesheet” type=”text/css” href=”//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.css”> Then whenever you need to redirect to a page and pass a notification you can pass the redirect a notification array like so: $notification = array( ‘message’ => ‘I am a successful message!’,…

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravelLiveWire Step 2: Open project in code and use vs code terminal. cd laravelLiveWire Step 3: find .env file in root directory setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: Create Migration and Model php artisan make:migration create_posts_table <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePostsTable extends Migration { /** * Run the migrations. * * @return…

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravelCustomRoutes Step 2: Open project in code and use vs code terminal. cd laravelCustomRoutes Step 3: Create Custom Route File Here, I will create following route file with multiple listed route. 1) User Routes: Here you have to define routes in web.php in routes folder. in that file, you have declared routes for user login. 2) Admin Routes: Here you have…

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravel7Ckeditor Step 2: Open project in code and use vs code terminal. cd laravel7Ckeditor Step 3: find .env file in root directory setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: Route Open routes/web.php file. Route::get(‘/’, ‘[email protected]’); Route::post(‘ckeditor/upload’, ‘[email protected]’)->name(‘ckeditor.upload’); Step 5: Controller Create CkeditorController Controller. php artisan make:controller CkeditorController Open app/Http/Controllers/CkeditorController.php file. <?php namespace App\Http\Controllers; use Illuminate\Http\Request; class CkeditorController…

https://youtu.be/vfuAPIYSYvc Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravelDragDrop Step 2: Open project in code and use vs code terminal. cd laravelDragDrop Step 3: find .env file in root directory setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: Route Open routes/web.php file. Define 2 routes Route::get(‘image’, ‘[email protected]’); Route::post(‘dropzone/store’, ‘[email protected]’)->name(‘dropzone.store’); Step 5: Controller Create DropzoneController Controller. php artisan make:controller DropzoneController Open app/Http/Controllers/DropzoneController.php file. <?php namespace App\Http\Controllers;…

Faster PHP Cloud Hosting