Category "laravel"

Which route is to write for same method on every page [closed]

Currenty developing a project in Laravel and want to now which route should I write when for example the search bar appears in the navigation

Laravel docker-compose 404 not found Nginx

I'm facing a strange behavior when trying to run my Laravel app using docker-compose. After starting the containers, if I try to visit my website URL I get the

Unable to update user role spite package when datatype changed to UUID

Hi I am using Spaite package for roles and permissions. I am using UUID datatype. Everything works fine when used normal integer datatype. Now showing Following

How to install google consent script for CMP banner?

window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag("consent", "default", { ad_storage: "Denied", analytics_storage:

Laravel Mix HMR Server Does Not Launch

Laravel Mix Version: 6.0.43 Node Version (node -v): 16.13.1 NPM Version (npm -v): 8.1.2 OS: Windows 10 21h2 Description: THIS IS HAPPENING ON A FRESH NEW INSTAL

Issue with Generating Random Numbers using Laravel contains vs foreach loop [duplicate]

Hey guys I come across this strange issue where if I use the foreach it does not generate a unique random number wheres if I use laravel funct

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')->