Category "laravel"

My coding mistake or problem with the integrity of the data?

I'm learning Laravel from Laracasts videos and so far I've made simple blog with 4 posts that are dynamic but only 2 of them when I click on the name of the pos

Install an Older Version of Laravel with Sail

I have a server that is still running PHP 7.4.x I, therefore, need to install laravel 8.x (the current version of laravel is 9.x) with laravel-sail. Since I don

root directory is displayed twice in URL on load and reload

I am trying to build an app using Laravel with Jetstream and Inertia + Vue.js. URL looks like this : https://website/app/route When I first visit the page, it l

How I can generate the unique transaction ID in laravel 8?

I am using Laravel ID Generator and i have made trasaction id and inserted in db but unfortunately i am getting duplicate transaction id in db please help me ho

Is there any way to avoid preflight OPTION request? [duplicate]

I'm creating a react app using the Laravel API and sending requests through Axios but a preflight OPTION request is sent with every GET or POS

How to paginate in react using inertia on laravel?

How to paginate in react using inertia on laravel? pulling the paginated data: $contacts = Contact::orderBy('name', 'asc')->paginate(10); return Inertia::ren

How to Laravel Mysql fetch data from database using multiple table join

This is my data retrieving query: $admin_students=DB::select("select students.*,application_record.*,gender_record.*, application_record.id as app_primary_id,ap

Assets retrieving issue in Laravel 5.4

Issue: Assets retrieving issue in Laravel 5.4 Server root directory -- public_html/ -- pilardir/ [Laravel Installed Here Project Controller, Models, Views Worki

Laravel Socialite works in Postman but not in SPA

I am in a weird situation where when i test the request to /auth/social/facebook in postman i am successfully redirected to the facebook page, but when making a

Synching validations between front-end and back-end projects

What do you do for synching validations between front-end and back-end teams in laravel? I read this post but I would like to know about laravel. I have also se

Vuestic-ui VaCheckbox Component is missing template or render function

I am using it with Laravel 8 and VUEJS 3. Everything works fine except " VaCheckbox " gives this message. " Component is missing template or render function "

Laravel Livewire image upload verification on edit form problem

I have a product page with an image upload form built with Livewire. when i revisit the page to update information, the page will only submit if I also pass thr

Laravel Livewire image upload verification on edit form problem

I have a product page with an image upload form built with Livewire. when i revisit the page to update information, the page will only submit if I also pass thr

Laravel weird issue: query return data with DB::table() but not with model::

I found an issue when delete some data, so I isolated the code Route::get('v1/testapi', function (Request $request) { return [ DB::table('attendances')->

Laravel weird issue: query return data with DB::table() but not with model::

I found an issue when delete some data, so I isolated the code Route::get('v1/testapi', function (Request $request) { return [ DB::table('attendances')->

I'm working at laravel project but there is always that error : ErrorException Creating default object from empty value

this is my candidatController.php the error is in the line before the last line($prev_canditure->etat="archifé";) $candidat_nw=Candidat::orderby('crea

I'm working at laravel project but there is always that error : ErrorException Creating default object from empty value

this is my candidatController.php the error is in the line before the last line($prev_canditure->etat="archifé";) $candidat_nw=Candidat::orderby('crea

How to edit picture on Coudinary with Laravel

Any Idea how to edit pictures on Cloudinary using Laravel API? I did a lot of searches, but I didn't find any references. The add worked successfully, but I did

Laravel Browsershot "node" not found

I got an error by using Browsershot in Laravel 8 (Laravel Code) $content = view('welcome')->render(); return Browsershot::html($content) ->noSandbox(

How to completely control Laravel Excel customValidationMessages output messages?

I am currently using Laravel Excel to import data from an excel file into database. When there are some errors occur, I'd like it to report in a foreign languag