I have a product component with fields: title and description.
Inside there there is also a FileUpload subcomponent.
Considering that the FileUpload has a $files variable that is required
when the user tries to create a new product without files I wa...
I am trying to use drag and drop in Category List.But Its working only in parent Category.How to Implement for drag and drop for child category also ?
This is my categories table look like
| id | title | parent_id | order | created_at |
This is m...
I want to create a factory with multi-level relations while everything would connect with ids without the use of the database (->make()), but if needed it would work with the database either (->create()).
I have achieved it, but it l...
I have the code below:
public function enable2fa(EnableRequest $request)
$validated_data = $request->validated();
$user = auth()->user();
$google2fa = (new \PragmaRX\Google2FAQRCode\Google2FA());...
My team is researching whether we should use laravel cache or symfony cache. The feature we are looking for is cache stampede prevention (for redis).
The symfony document mentions "The Cache Contracts also comes with built in Stampede prevention...
I have Rollbar installed for error tracking but it only seems to work for errors that involve a Livewire component. My staging environment (which runs on a real domain using Vapor) just registered a 500 Server Error but Rollbar has no record of it. B...
I have a Livewire component user-index which renders a user-element child component for each user entity.
The child component contains a modal and a link to open it and perform an action.
@foreach($users as $user)
I have installed laravel octane
i have added code in AuthServiceProvider's boot method which change model for authentication based on header value
public function boot()
$isHelper = request()->he...
I am trying to run Dusk inside my Controller to get cookies. How can I use a proxy for this?
public function updateHeadlessBrowserCookies(bool $make_reload=false)
$process = (new ChromeProcess)->toProcess();
I have a project in which the backend runs with laravel and the frontend runs with vue.
These are separate projects, not a single project. I'm calling laravel API from the frontend Vue application.
Is there any way to host these two projects under th...
I am using barryvdh/laravel-dompdf for quite long.
Using external CSS (From local) and font (From CDN), It was working fine and suddenly the design collapsed, also the font not working so I've checked in the view and came to know the view is not loa...
I have several cards on one page - but I did not find a way to access a component (specifically it is a DataGrid from Devextreme) in another card using this.$refs etc.
So I guess one must use this.$root etc. - but here I am lost as I don't know the p...
I'm using vue and buefy.
I have 2 components : a table component and a modal component.
The table displays the list of items and the modal is to add / update a new item.
The table view.
I have this running example of Vue3 chart js which is found in this link:
the chart is inside the setup method of vue my question is, How can I pass data from axios request to setup and update the values of the...
When I visit the frontpage of laracasts it looks like this with Firefox: https://imgur.com/4hE8dXE
If I hover over clickable elements it shows a good portion around it for a while after removing the mouse before it vanishes again.
Tested in private w...
Yesterday, I set myself up a "work" user on my Mac. I installed and went to use Valet, and found that it was trying to access sites from my "personal" user.
I was wondering if this was common, and if it could be fixed to be...
I'm trying to use Lodash throttle to control how many times my AJAX will run, however, it doesn't seem to work. I don't know if my syntax is wrong or something. I'm grateful for any suggestion.
here is my AJAX
swiper-bundle.min.js:13 Uncaught TypeError: Cannot read property '$el' of null
at t.init (swiper-bundle.min.js:13)
at t.beforeInit (swiper-bundle.min.js:13)
at Array.forEach (<anonymous>)
I am working on a classified site in laravel. I have a list of categories and for each category there are specific attributes. I have seeded the database with data. I am working on the filters of category page. For example for a commercial building i...
I am using profanus small library , This small library is replacing bad words with stars ***
but when i Use it with arabic bad words it is doing that but it adds extra characters and question mark ( ? )
inside black square ....
By default, datatable uses "And Search", if we enter 2 words, it filters the records containing both words.
I want to display the records containing one of the two words or more generally to follow a more complex logical expressi...
so i am not sure what i am doing wrong but i find that after like 19? hours (or some time) the login route gives an error
"error_description": "The provided authorization grant (e...
I currently have on my Model\Vacancy:
scopeSearchVacancies($query, $search) and
scopeApplyFilters($query) through CreateDate and UpdateDate Pipeline Filter::class for ordering
I'm returning Model\Vacancy::collection
$vacancies = Vacancy::searchVacan...
We have a laravel system where our various clients log in and create appointments, currently we allow the download and/or emailing of the .ics file to integrate with their Outlook (or Gmail).
However, we would like to be able to simply do an api c...
I'm using Laravel Permission Package but I'm facing a problem accessing my Policy class which UserPolicy
I register the Policy in Service Provider but it's not working, I'm not sure where I'm doing wrong
here is my code
I am currently encountering an error during the production build process within a Docker container that I cannot explain. The logs are extremely ambiguous and don't' necessarily say what is going on. This is what I am seeing:
[webpack.Progress] 92% c...
I'm using the lastest version of Lumen for an API project, that needs a recurring task operation. Lumen itself has no documentation on that. For the laravel documentation, the command schedule:work is proposed for local testing. But Lu...