skip to Main Content

Laravel – Bootstrap responsive doesn't work and not recognized in devtools

I'm working on a project with Laravel Mix, Vue.js and Bootstrap 5.3 About laravel mix: const mix = require("laravel-mix"); const path = require('path'); require("mix-env-file"); require("laravel-mix-workbox"); mix.js('resources/js/app.js', 'public/js') .version() .vue() .sass('resources/sass/app.scss', 'public/css') .sourceMaps() About app.scss @import "~bootstrap/dist/css/bootstrap"; ... custom things Vue.js…

VIEW QUESTION

Laravel 11 delete item with Bootstrap 5 modal – response is string, not object

web.php: Route::delete('/roles/{id}/delete', [RoleController::class, 'delete'])->name('roles.delete'); RoleController.php: public function delete($id): string { $data = [ 'id' => $id ]; return response()->json($data, 200); } index.blade.php: <a href="{{ route('roles.delete', $role->id) }}" class="btn btn-danger btn-xs btn-action" data-bs-toggle="tooltip" data-bs-custom-class="ls-tooltip" title="{{ __('Delete') }}" data-action-message="{{ __('Delete this role?')…

VIEW QUESTION

Laravel seeder dont fill table with foreing keys

I'm working on a Laravel project, and I have the following migrations: public function up(): void { Schema::create('customers', function (Blueprint $table) { $table->id('customer_id'); $table->string('first_name', 50); $table->string('last_name', 50); $table->string('address', 100)->nullable(); $table->string('phone', 15)->nullable(); $table->string('email', 50)->unique(); $table->timestamp('registration_date')->default(DB::raw('CURRENT_TIMESTAMP')); $table->timestamps(); }); } /** * Reverse…

VIEW QUESTION

Laravel and Vue have performance error with LCP

I have a project with Laravel v6 (mix) and vueJs v2 It has LCP error My website LCP is a hero image that I used it like this <picture> <source media="(min-width: 1536px)" :srcset="getAssetPath('/v2/assets/images/home-new.webp')" type="image/webp"> <source media="(min-width: 1280px)" :srcset="getAssetPath('/v2/assets/images/home-bg-1535.webp')" type="image/webp"> <source…

VIEW QUESTION
Back To Top
Search