Category "laravel"

Vue js with laravel not geting api data and response

this is Vue js component please help me to get data in template. getting data from vue js api in console i got undefined. Not getting blogList Data please help

Laravel export excel from view, prevent spacial characters error

I use maatwebsite/excel export from view, but when my column value contains any special characters like "&", export start sending error "Failed to load ....

Button onClick not working in React x Laravel

Hello everyone i am quite lost right now, in my other react projects onClick is working just fine but now with my new app laravel with react i cannot do an Oncl

Laravel 8 Admin controller don't work - in what problem?

I have this route: Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => ['web', 'auth']], function () {; Route::get('/', fun

Losing session data after POST from third party website

I have a Laravel site that redirects to a payment provider (external third party website). When the user completes their payment, they are redirected back to my

Laravel s3 upload file with metadata using pre-signed url

I am implementing S3 file uploads and downloads using pre-signed urls. I have one s3 bucket (versioning enabled) and one AWS user but I want to track the histor

POSTING XML USING GUZZLE CLIENT LARAVEL

I am a laravel junior developer and i have been using gazzle http for handling my requests, now i have a task of integrating Collections to a system. The provid

Elastic beanstalk cron with laravel schedule

I have just made two schedule in laravel. Register them in kernel like this $schedule->command('jobs:expire')->everyMinute(); $schedule->command('job

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