Category "laravel"

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

Clear javascript source cache laravel 5.8

I create company profile website using laravel 5.8 and vue js for make it reactive, it's not SPA(single page application) maybe we can call it hybrid, everythin

how to use whereHas in laravel

I am new to laravel, I need to create a query for the db, $query = Deal::query(); I want to use the wherehas operator. this is my code that is worked. else if

Laravel database insert with combining array and string

I should insert an array such as $attendanceList = [18354012,18354013,18354014,18354015] and $present = "FALSE" and same for all item of $attendanceList. As you

Method Illuminate\Auth\RequestGuard::logout does not exist Laravel Passport

Am using Laravel Passport to build an API, I removed the web routes and its guard accordingly How can I test user logout? This is what I have so far: Lo

One eloquent query with whereIn clause with more than 3000 elements works but another one with the same elements and format doesn't

Hello and thank you beforehand for your help. I've been hitting my head against a wall with this problem for a few days now so decided to ask here. I have two q

How to POST correctly a form that have data and files with VueJS, Axios and Laravel?

I am posting here as a beginner of VueJS and Laravel. I am stuck with a problem that I can't fix by myself after hours of search. I would like to know how corre