News Articles laravel

Which Chart-Framework is recommended? – (Laravel8 Ineria.js Vue3) [closed]

i need in my project some charts, its important that they are dynamic and i want to change chart-data and styles inside the vue-component. Actually im using larapex ( enter link description here ), but im interested in which frameworks are recommended and whats your suggestions . Thanks for every information 🙂 Source: Vue – […]

When the page is updated the data is deleted – vue and laravel sanctum

I am using vue and laravel in a project, I have sanctum configured in laravel, when I update the page the data is deleted I get an Unauthorized message. I tried to set vuex-persistedstate in the project, but it doesn’t work, I was also trying to create an interceptor to read the token that is […]

Please help me about use multiple database use in laravel app

How can I use multiple databases in a large laravel app? $db = ‘a’ or ‘b’ or ‘c’ (dynamicaly query from main db). DB::disconnect(‘mysql’); Config::set(‘database.connections.mysql.database’, $db); I will use the same interface ‍so that If I use it in a big app like this, will there be any problem in case of more data? This […]

How to show "This site isn’t working" instead of errors in laravel 8

Laravel shows me these kind of errors In my live website I got errors on the front end but I want to show "This page isn’t working right now" instead of those errors. If anyone have this solution then let me know but i want to show like this Source: JavaSript – Stack Overflow

Laravel 8 Webpack don’t compile my scss files in dev mode

I tried to fix the same problem by installing version 5.2.7 of css-loader, and it didn’t help. So I reinstalled the latest version of css-loader (6.5.1). Here is my configuration: MacOs 10.15.7 VSCode 1.62.3 NPM 8.1.0 Node 17.0.1 Laravel-mix 6.0.39 I have created a Laravel project in which I have scss files that I would […]

Get the updated value in laravel + vuejs

I have a edit page : http://localhost/smp/post/12 API ROUTE: Route::get(‘package’, [ProductController::class, ‘update’]); In ProductController.php public function update(Request $request) { dd($request); // } In product.vue axios .post("/promotion-platform/api/images/upload",{ ‘id’ : this.id }) .then((res) => { console.log(res.data); }) eg: I fix the name box from ‘Iphone 13‘ to ‘Iphone 12‘. And when I press update then I want […]

Uncaught (in promise) Error: Ziggy error: ‘id’ parameter is required for route

I am working on single SPA using laravel and inertia js. I am using multi language as well. So I am passing language as prefix parameter like this. Route::group([‘prefix’ => ‘{language}’],function(){ Route::get(‘events’,[HomeController::class,’event’])->name(‘events’); Route::get(‘events-details/{id}’,[HomeController::class,’eventDetail’]) ->name(‘events.reservations.index’); }); my controller public function eventDetail($land,$id) { $events = $this->repository->getAllEvents(); $event_details = $this->repository->findById($id); $time_interval = ReservationHelper::getTimeInterval(); return Inertia::render(‘Frontend/Pages/Reservation/Index’, compact(‘events’,’event_details’,’time_interval’)); } Calling […]

Error: Ziggy error: ‘id’ parameter is required for route

I am working on single SPA using laravel and inertia js. I am using multi language as well. So I am passing language as prefix parameter like this. Route::group([‘prefix’ => ‘{language}’],function(){ Route::get(‘events’,[HomeController::class,’event’])->name(‘events’); Route::get(‘events-details/{id}’,[HomeController::class,’eventDetail’]) ->name(‘events.reservations.index’); }); my controller public function eventDetail($land,$id) { $events = $this->repository->getAllEvents(); $event_details = $this->repository->findById($id); $time_interval = ReservationHelper::getTimeInterval(); return Inertia::render(‘Frontend/Pages/Reservation/Index’, compact(‘events’,’event_details’,’time_interval’)); } Calling […]

Can’t resolve ‘vue-good-table.vue’

I have a problem with vue good-table and vue-router library. I dont know if this is a bug or just me missing something to write in the code. The problem was whenever I install vue router using NPM, good table library seem to have some error cant resolve good-table … Whenever I install good-table library […]

Ajax request does not resolve in correct url

I am trying to get data from this url: axios.get(‘/join-us-donate’) It SHOULD be sent through web.php: Route::get(‘/join-us-donate’, [CMSController::class, ‘joinUsDonate’]); and run this function from CMSController.php: public function joinUsDonate() { $data = DB::table(‘table’)->first(‘order by id desc’); return $data; } but it doesn’t. Instead axios.get returns the whole welcome.blade of my laravel project, which is confusing since […]

how can I save a croppie-cropped image, the same way as I save an image-file?

In a vue / laravel application I have a window where user can edit the profile. I want to replace the <input type="file"…> tag with a vue component that crops the image. The current, working, script is: <template> <div> <h2>Cards 1</h2> <div class="form-group" > <input type="text" class="form-control" :placeholder="card.title" v-model="card.title"> </div> <div class="form-group"> <textarea class="form-control" :placeholder="card.description" […]

Laravel, axios: The first login request to server returns strange data {two_factor: false} instead of Auth:id(). How to fix it?

I want make axios return a response of just logged in user’s id. When I was using Laravel Fortify with blade.php files, everything was too simple. Fortify was doing redirect to home page automatically after the successful login. But when I started to use Laravel with vue js and vuex, I faced a problem. When […]

How to upload Vue.js project on a existing Laravel Deployment?

I have a very simple Vue application running locally in this my vue/ folder vue/random-user-gen. Here is the entire codes Result I want to make all my vue projects that I placed in my vue/ accessible online Ex. https://www.bunlongheng.com/vue/random-user-gen I’ve tried uploading the entire folder there in my public directory that I host my site, […]

Retrieve Column Value Laravel VUE User Controller

I have add new column "r_cr_customer" in users table. The field is displayed as checkbox in user create VUE. I can store checkbox value in the field "r_cr_customer" of users tables but the problem is field is not checked when i show field value in the VUE. field is marked as checked when i hard […]

Prevent form from reload in laravel modal

I am working on modal submit form , the problem that when I click on submit in the modal, the whole page is reloaded and all the other data is cleared. I have tried a lot of solutions but none has worked. For example adding return false This is the blade file edit.blade.php <div class="box-footer"> […]

how to checked pre selected checkbox in vue

i have tree view checkbox and if you edit this data while selected zone and there countries must be checked true based on previous selection , selection data countries id come form db (14,38,25) this way so while edit same record i want that countries should be check true with zone name how to archive […]

How to dynamically generate a multi-dataset line graph in GraphJS?

Data is generated like so: $repResults[] = [ ‘label’ => (new CarbonCarbon($wbwResult->created_at))->isoFormat(‘DD-MM-YY’), ‘data’ => [ # datatype cast to int to prevent {!! xss !!} (int) $wbwResult->discipline_three, (int) $wbwResult->discipline_four, (int) $wbwResult->discipline_five, (int) $wbwResult->discipline_six, ] ]; I am then trying to output the data as a line chart: const ctx = document.getElementById(‘myChart’).getContext(‘2d’); const myChart = new […]

Laravel Vue js Twilio Received error: TransportError: TransportError (31009): No transport available to send or receive messages

I am trying to follow the steps here https://github.com/TwilioDevEd/voice-javascript-sdk-quickstart-php/blob/main/quickstart.js I don’t know they Have changed the Javascript SDJ to 2.0 or something. I was familiar with the previous library but it is depreciated. Can someone help me to figure out what’s going on I don’t know why I am getting this error Attempting to call […]

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.