Lordbedwetter Lordbedwetter
2
I am currently implementing third party login with LinkedIn, Github, FB, etc, however, there are no passwords associated with these types of logins (to my knowledge), and therefor, I am unable to delete the user account from the dashboard, as it requ...
chaudigv replied
Solved
jaeyson jaeyson
2
hi! i have a route api.domain.tld/image/24 in api.php and domain.tld/image/24 in web.php. when i access api.domain.tld/image/24 it redirects to web. how can i access the api without redirection? i have wildcard A host record pointing to the same ip a...
adityar15 adityar15
0
I am using pagination to show content on scroll. I am using livewire and while fetching the content I want to show loading on the frontend. I tried <div wire:loading wire:target='fetch'> 'Getting content ...' </div> But it does not wor...
icode15 icode15
4
Hello all , i use 3 guards on Laravel. And from a middleware i want to know the current Guard someone can help ?...
AtomCoder AtomCoder
0
Hi Guys, I'm using the throttle middleware on an api route, is there any way I can access/display the remaining attempts allowed for the authenticated user ? Would be nice to be able to display it in the api response....
noblemfd noblemfd
3
I am using Laravel-8 for hrms application. It has multiple companies, and each user belongs to a company. Initially, I was using it for a single company. But now it's for multiple company with a singular database. The user table has company_id. Model...
moses moses
108
I want to write code that cleanly. So nice views. How can I do that?...
P81CFM P81CFM
5
Hi guys, I'm about to go online with a small app which uses a control panel contains in the directory /cpanel-admin/. In the prehistoric period of my PHP "career" I used to use .htaccess and .htpasswd to protect the entire folder with the c...
Marinario Marinario
23
I'm trying to decrement like this on related hasOne trashed item but it throws me an error. $review->category->decrement('total_reviews'); The error: Call to a member function decrement() on null Can I decrement on related model which is tras...
iroxbir iroxbir
12
I Have a for where you can add multiple lines by click on a button and I want to store the data into the database This is the error I get when I submit the form - Array to string conversion Form inputs I didn't post the form element since I don't thi...
farshadf farshadf
28
i have a join query in laravel that i want to group by and orderby together but always just one of them working and groupby is not working with orderby any advice ?? my code is like below : $data = $query->join('accommodation_rooms as cr', 'accom...
TutanRamon TutanRamon
1
I am building a Laravel application which allows users to post news articles on their website. A news article (post) may contain html and may include images. Now, the images, that's the tricky part. I could just allow an user to insert an image (stor...
Lordbedwetter Lordbedwetter
11
I would be a liar if I said I wasn't overwhelmed by the changes that has come with Laravel 8 and the addition of Jetstream and Livewire. I am having a hard time wrapping my head around how this stack is supposed to work together. Specifically, at thi...
chaudigv chaudigv
1
I have a newsletter livewire component which accepts an email and do create/read operation. I would like to add a rate limit to this component. That is, allow users to submit the newsletter form 10 times per minute. I am able to achieve this by setti...
grozavule grozavule
1
I have a component that I would like to reuse with any Eloquent collection. datatable.blade @php if($collection->count() > 0) { $headers = array_keys(get_object_vars($collection->get(0))); } @endphp @if($collection->count() > 0) &l...
saadaan saadaan
4
Hi, I am using laravel-excel package for excel export, and successfully downloading the data from controller method as given in the docs. However, I have some customization in the blade page. Is there a method to download the data displayed in the TA...
hillcow hillcow
2
I will admit that I probably should have done this way earlier, but here we go. I don't really know where to go from here and need your help. Thanks! Package Current Wanted Latest Location @babel/runtime-corejs2 7...
grozavule grozavule
1
I have a Blade template with a function in the @php directive. This doesn't feel like the best place for it. Where should I declare this function to still make it callable in the template?...
could I use both Vue and jquery in the Laravel project using Laravel Mix and using them in the project?...
joshblevins joshblevins
2
I am looking for direction on creating a form where there is a photo of a vehicle and the user can click spots on the vehicle and add damage information to the image then leave a number where the user clicked. I am unsure what this is called so I can...
jgravois jgravois
3
I am running production on Digital Ocean via Forge ... the current composer version is 1.10.19 ... I can't composer self-update --2 because of this [Composer\Downloader\FilesystemException] Filesystem exception: Composer update failed: "/usr...
Tray2 replied
Solved
lalqilla lalqilla
2
So I have a Post model with 'body' attribute I have a form with just 1 input for body I want to add a select box where users can delete post after x time How do I use Task Scheduler to achieve this?...
Hello, I have 2 tables in my database, one called markers which I store all my google map markers and one called markers_destinations which I store the destinations each marker can have. markers table: +----+---------------+------------+------------+...
akc4 replied
Solved
zeusess zeusess
8
I am working on a project in laravel 5.8 and postgres. I have one main database, a global schema with master data and other schemas for each organization. The schema with the master data is the default connection. I am attempting to search for a spec...
zeusess replied
Solved
lashchenko_viktor lashchenko_viktor
3
Horizon Version: 5.6.1 Laravel Version: 8.16.1 PHP Version: 7.3.0 Redis Driver & Version: predis/predis 1.1.6 Database Driver & Version: AWS Serverless Description: Hi, seems like that horizon duplicate supervisors process from time to ti...
brooven brooven
2
Hi all, I am having an odd issue: The login doesn't work. (it doesn't give me any errors) .When I submit the POST it redirects me back to the main homepage. Now I am not sure if this is related but I have the app set up with subdomains. (For admin I...
Maged Maged
7
when i run phpunit i get this error Illuminate\Database\QueryException: could not find driver (SQL: PRAGMA foreign_keys = ON;) i'm working on ubuntu any idea ?...
santino replied
Solved
daugaard47 daugaard47
2
When I use wire:model="foo" on my select fields the disabled selected option doesn't show as first selected. Anyone now how to get a disabled selected placeholder to show first on select fields? This is my hacky workaround and it feels wron...
lazos99 lazos99
11
Hi, For code reuse I am using Abstract Classes. Code reuse on this particular project that I am working on at it has been a really pain in the ...!!! A "Batch" in the application is a batch that contains multiple documents. The below BatchC...
lazos99 replied
Solved
RFFRED RFFRED
2
I have a many to many relationship between users and articles (called contentLive). All is working fine, but now I need to add a YEAR parameter in my pivot table and it needs to be part of the primary key. user model public function articleReadTh...
RFFRED replied
Solved
forratino forratino
19
my controller code: /** * Show the form for editing the specified resource. * * @param \App\AboutMes $aboutme * @return \Illuminate\Http\Response */ public function edit(AboutMes $aboutme) { $aboutme = AboutMes::find($aboutme->about_mes_id);...
Scooby Scooby
0
Would anybody happen to know how I can tell Sublime Text 3 that the dots in nested blade components are ok? The dots are being highlighted as errors and are quite bothersome to the eye. https://laravel.com/docs/8.x/blade#rendering-components <x-in...
Nimrod Nimrod
0
Hi. Following problem I can't get my head around: ... $this->get('https://laravel.com')->assertOk(); // OK $this->get('https://laravel.com/img/logotype.min.svg')->assertOk(); // 404 ... I just want to test, that my uploaded images are ac...
I am using the Storage facade to upload/delete files to/from AWS S3. Everything is working fine but when I try to delete a file using the following code: if (Storage::disk('s3')->exists($path)) { Storage::disk('s3')->delete($path); } the actu...
Create a New Discussion Button