Category "laravel"

Return to same tab after form submit laravel 8

I have a view with multiple tabs. Each having different forms. When I submit a form from one tab, it returns to same page but primary tab. How could I get to re

How to integrate TailwindCSS in a Laravel package?

Usually, when I use Tailwind in Laravel, I would install it like so: $ npm install -D tailwindcss postcss autoprefixer $ npx tailwindcss init /* in the app.css

Laravel Polymorphism for different content types (Multisite)

I started to develop a little Content Management System for two languages (de, en) that starts to grow bigger. In that context, I have Posts and Pages (a bit li

Every second API request takes a long time when I send request through browser. With postman request take the fixed amount of time

I use laravel (7 or 8 version no difference), php 7.4 (opcache enabled). axios/fetch(empty request) no difference. browser edge/chrome no difference. What's in

Laravel Sanctum unauthenticated using postman

I follow the Laravel official document step by step. When I send a request to {{host}}/api/login, I can receive the response that includes token. EVerything is

Livewire ignore does not receive correct data

I'm using selectize.js for dropdown styling with livewire. I'm using livewire for a data table with sortable columns and pagination. The issue is, every time I

Laravel data backtracking after Session::flush()

I'm using Laravel 8 to do a login/logout function, if users login, their data will record in session; and if logout, it will be destroyed from session. I find t

LARAVEL: How to fetch id dynamically in a query builder?

I want to join multiple tables in laravel with query builder. My problem is that my code only works if I specify the id myself that I want like this: $datauser

"There is no active transaction" when refreshing database in Laravel 8.0 test

Using php 8.0.2 and Laravel 8.37.0, I am running tests where for every test the database data should be refreshed, since there is conflicting data per test (due

Laravel Sanctum throws 401 Unauthenticated when using Postman

I have problem with Laravel Sanctum. My dev environment is located in subdomain. All my API routes are prefixed with /api. Here are my settings: .env APP_URL=ht

Pass value from vuejs view once and use common for all controllers in laravel?

After logging in, I let it go to the home page to choose to access one of the two tools: <button @click="checkTool(1)" class="btn btn-lg mr-2">Tool 1</

I want a way to give path to my files which are outside of public folder in laravel

suppose <link rel="stylesheet" href="{{asset('css/style.css')}}"> helps to get style.css file which is in public folder but similarly how can I access f

button form for header sticky by javascript html laravel

There are two buttons on that blades (Laravel). The button (.btn-main) works in the main, but the button (.btn-header) in the header does not work. I mean when

Laravel Spark Next Hangs At Pending Subcription

I have set up laravel spark next and jetsream with inertia as the base for authentication purposes. I have also acquired myself a paddle sandbox account to set

LTI integration with Laravel websites as LMS

There're two websites of educational courses. I own the one built with Laravel. I want to access another website's courses into my website. So basically I want

Docker & Laravel : configure: error: Package requirements (oniguruma) were not met

Can anyone help me with this problem. When i try to create a docker image from a dockerfile for laravel application i get this error: checking for onigurum

_plugins_vuetify__WEBPACK_IMPORTED_MODULE_8__.default is not a constructor

I had an issue upon installing vuetify to my project, I followed some solutions in some questions but still I had an issue. Here is my vuetify.js import Vue fro

Laravel 8 eloquent query delete

How to delete the aircon in database when there is no any data. Order and Aircon are many to many relationship. $orders = Order::with('aircons', 'user')

How to generate QR CODE for dynamic generating link and logo using Simple QrCode in laravel?

I want to generate 'Image inside QR CODE' with dynamic url and Image. I have mentioned the below error and code. Used the https://www.simplesoftware.io/#/docs/s

laravel sanctum - vuejs, 401 (Unauthorized) in live server while trying to get user info

I have developed this in laravel vuejs, used laravel sanctum for authentication. The app works fine in localhost, But getting this error while I did this in the