Category "laravel"

run function in every login in laravel fortify

I am using Laravel 8 with Fortify. I saved user's emails and passwords into the database and I'm not going to use registration. Every time users log in, I need

Shopify App-bridge session token is having some issues while working with the vue.js and Axios?

I am facing some issues while making a shopify application Vue.js as frontend and laravel as backend. I am using app-bridge to generate session token it is gene

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

I just upgraded laravel 7 to laravel 8.30.1 and I am trying to add the default value of pivot column object_model of term_relationships table using the newly in

Laravel reuse session on subdomain

Let's say, I created 2 server and 4 sub domains. example.com and first.example.com route to first server. second.example.com and third.example.com route to seco

messaging.onBackgroundMessage is not getting called in web

I have implemented FCM in push i want to redirect to my screen on click of push notification when app is in background. It is redirecting to my webpage but mess

How do I host Laravel and Inertiajs (React) app in cPanel?

I built a laravel with inertiajs App, Now I'm going to deploy my app to some host. I tried Siteground to deploy it but it doesn't support NPM! Now I'm trying to

VUE js How hide routes by role in vue-router? Spa Laravel Vue

I am writing a SPA application (laravel + vue). There was a question how to hide routes in vue-router before authorization of a user with a certain role. Now th

Is Laravel Sanctum suitable to give API access to Third-party server?

We built an API (which currently contains just a single route) to give access to specific data to another company we are working with. The API calls this other

How to I Add a view or Component that doesn't effects with master layouts

Guys I'm trying to making a page called slider and that page include both data passing and data getting methods. I created separate sections and i preformed tha

How to properly start Laravel 8 with Bootstrap & authentication

I face the following image every time I want to start a new Laravel 8 project with authentication routes set up using the laravel/ui package and Bootstrap scaff

How to properly start Laravel 8 with Bootstrap & authentication

I face the following image every time I want to start a new Laravel 8 project with authentication routes set up using the laravel/ui package and Bootstrap scaff

how to sort by a custom appended relation to model

i have a custom appended relation to model that i want to sort my parents according to that so this is the result of my api when i call it : { "i

image source not readable

I want to upload an image from external source but I get an error that image source not readable, I really do not know whether the URL for the image is incomple

I am getting error when try send sms using laravel-smpp

This is error:socket_close(): Argument #1 ($socket) must be of type Socket, null given, path:/vendor/php-smpp/php-smpp/sockettransport.class.php

Trying to mock an http client that is inside a controller, using phpunit, but it doesn't work

I have to test the routes of a controller which uses Guzzle Wrapper as a client to get data from an API. The app uses Laravel as a framework. This is the part o

target [Laravel\Fortify\Contracts\RegisterViewResponse] is not instantiable

i'm have a router register but i found error Target [Laravel\Fortify\Contracts\RegisterViewResponse] is not instantiable.

Closure not setting variables as expected

For some reason, $uuid & $tags are not being set correctly. public function handle(Request $request, Closure $next) { $uuid = null; $tag

How to redirect to a blade dashboard page from Vue login Component page after successfully login in laravel JetStream?

I created a laravel 8 project using jetstream authentication. As stack I have used inertia+vue. After successful login, I need to redirect to a blade file. But

auth pages not getting css in laravel

I am beginner to laravel. I have created project. And I have run following commands to it. composer require laravel/ui --dev npm install npm run dev php artisa

How to Display Data in Yajra Datatables Laravel 7?

I want to display data in Laravel using Yajra Datatables, but the problem is that the data can't sync yet. If I do Dump and Die dd($orders), the number of dat