Category "laravel"

how to create temporary url for custom storage in laravel?

I make a disk in filesystem like: 'avatars' => [ 'driver' => 'local', 'root' => storage_path('app/avatars') ], is it

How to re-init the AlpineJS component after Livewire re-renders?

I have an alert component that I hide using AlpineJS but I want it to be visible again after Livewire re-renders. Showing the alert using Livewire component @if

Laravel Command Schedule Not Working Properly

I'm building a project with Laravel 7.28 on localhost. I need to update a PDF every hour. For the beginning I created a command: <?php namespace App\Console

Laravel Command Schedule Not Working Properly

I'm building a project with Laravel 7.28 on localhost. I need to update a PDF every hour. For the beginning I created a command: <?php namespace App\Console

After social Login its redirect to Facebook page

This is mani I am facing some issues with social login subject: I face a redirection issue in larvel socialite When I login through Facebook after authenticatio

how to send message to specific one user id using ratchet Laravel?

chat.php how to send message to specific user id? public function onMessage(ConnectionInterface $from, $msg) { $numRecv = count($this->clients) - 1;

Laravel-mix-criticalcss in Docker cannot read property 'content-type'

I'm trying to set up laravel-mix-criticalcss in a Docker container and I'm getting an error. Has anyone come across this before? Error [webpack-cli] TypeError:

Laravel php artisan serve to mimic HTTPS

I have been searching around to see if there is a way I can mock SSL for local development using Laravel's artisan to serve HTTPS with no luck. Is this possibl

Laravel Http client before request send add headers

I'm using Http client for making outgoing HTTP requests. I've used it many places in the project.Now project has new requirement that I have to add a new header

renameColumn migration fails for existing column with columns does not exist error

I get the error Doctrine\DBAL\Schema\SchemaException : There is no column with name 'price' on table 'class_rooms'. while running migration to rename the price

Laravel trying to save $appends attributes

I am coding on Laravel 6, and stumbled up on this problem. I have accessors for a field that i need in my model in some cases, but it does not exist in my datab

FromRequest Validation for Get Method is not working -Laravel

I am doing request validation using FormRequest Method. I am using GET method. All things seems correct but validation is not working. My Controller use App\Ht

Google Sheet to Laravel 8 Integration

I want to integrate google sheet with Laravel 8 without any third party tool or connector. I know its simple for many but i am not able to get through. Highly a

Google Sheet to Laravel 8 Integration

I want to integrate google sheet with Laravel 8 without any third party tool or connector. I know its simple for many but i am not able to get through. Highly a

Get all the products which are inside parent Category and child categories in Laravel with the help of relation

I have category and product table as follows: Categories: id | name | slug | parent_id Products : id | brand_id | name | slug | price | desc P

laravel db transaction context is available on called functions

I have found that for using DB::transaction in Laravel, in combination with the ORM, we need to run something like: DB::transaction(function() { // Mod

Laravel-echo-server and Socket.io not firing command even though it's listening to channel

I've been trying to create a live chat application for a couple of days now, but it seems that I'm getting stuck on the first step; Getting the project to fire

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

i want to ask you how to select FOREIGN KEY (from "doa_id in "doas" table) when user create a new data (to the "notes table) in a form. This is my code : NoteCo

Unit (real unit test) of test laravel relationship

Background Framework: laravel 9.x PHP 8.0 Continuous integration (Travis CI etc) I am working on a project that is legally very sensitive, so testing is vital.

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