rsusanto rsusanto
3

Unique validation on 3 columns in 1 table

I found validator unique syntax and used it my project. 'size_value'=>'required|unique:sizes,size_value,NULL,NULL,size_metric,'.$request->size_metric...
Laravel
3
1003
Danieloplata Danieloplata
3

ReflectionException: Class env does not exist

Hi guys, Having an annoying issue where I can't run my PHPunit tests, nearly all tests return the following error: ReflectionException: Class env does n...
Laravel
3
788
FareedR FareedR
3

in_array key and list of data

so i got a form that need to tick (checkbox). and the tick(checkbox) is an array . am i missing somewhere ? $is_contradicts = $request->has('contradict...
sfilzek sfilzek
2

Authenticating user against fields from a separate table

I have a situation where my application has a users and accounts table, with each account having many users. On login I need to perform the usual user authentication...
nhaley nhaley
4

Laravel Query Builder error column not found with joins and parameter grouping

Have a set of queries I would like to convert from raw to query builder but having issues when using parameter grouping: SQLSTATE[42S22]: Column not found: 1...
onproae onproae
7

Company Group

Hi i want to rephrase my question. Example. I am a user under 1 company. And we 3 Users with different user roles. Now how can i query to show the data that i...
davy_yg davy_yg
5

blank screen

I can't understand why I get a blank white screen for my online website. I seperate the framework and the public_html folder which is quite common. in my publ...
hussein_derbalah hussein_derbalah
0

belogs to many Relation between 3 tables

I have 3 entities Category,Post and Page. the relation between Category and Post is belongs to many ( and it works fine) and the relation between Page and Category is also...
ssquare ssquare
0

Laravel got stuck after login. Laravel 5.8

I have done following: Go to Login Page: amenity.local/login (or if I enter amenity.local it will redirect me to amenity.local/login...
JBG1K JBG1K
5

Get items only if the user is not banned

I need to display a collection of ItemRequests which belong to a user, but only if the associated user is not banned AND if the ItemRequest is not completed....
joshsalway joshsalway
0

UserToProductDiscount relationship NOT working?

User Categories works: app/user.php public function category() { return $this->belongsToMany(Category::class, 'users_to_categories', 'use...
dragonberr dragonberr
2

System: Mac Catalina update, Problem: TokenMismatchException

PROBLEM: Register page on submit was going to 419 Page Expired **Note 1: register.blade.php Already has the token. @csrf...
maulayyacyber maulayyacyber
2

How to show image from storage on Email

how to show image full path from storage on email this is my code @component('mail::table') | |...
thraxxdv thraxxdv
7

Manual Authentication

This just very confusing for me. I'm jumping from procedural PHP to Laravel and this authentication stuff is just something I cannot get my head around. The automate...
Laravel
7
108
lightyagami lightyagami
3

authentication from external source

our app connect to a external source to make the auth, then, return us the session token, with that token, we make the user login in our app (it's not laravel), NOW, i want...
pilat pilat
11

Performant way to mass "update or create"

Hi, I'm looking for a way to do something like updateOrCreateMany (imaginary method).Currently, the code looks like this: class ActivityReposito...
Eloquent
11
5386
shakti shakti
6

laravel admin can access user account

i need some code or reference for laravel admin access user account but admin should not logout when he/she login to user account. i need admin and user account logi...

Laravel - Using Gates on API requests for authorization

I have a laravel app setup perfectly with roles and permissions using gates. For example, in the web routes file I have this which works great: WEB.PHP...
boldstar boldstar
4

How To Mail Exceptions

so I am trying to understand how exceptions are thrown and also how I can catch the exception and send to an email. I used an example to build out the basic logic for sendi...
Laravel
4
639
KalimeroMK KalimeroMK
1

Error installing package

composer require tightenco/ziggy Do not run Composer as root/super user! See https://getcomposer.org/root for details...
Anthonynzube Anthonynzube
5

Redirect after login

i'm using laravel 7. in previous laravel versions when i wanted to change the page i intend to redirect to, i just change this line in the LoginController.php file....
penipeni penipeni
1

Jobs start again after completion

I use horizon and redis driver for queues. I have 40k rows in database to process (calculate prices and update row in database), so I run 40 jobs (1000 records per job). Ea...
commish commish
22

HALP! Laravel Mix not using my app.css

The app.scss is compiling perfectly fine, but when I inspect the .css served by my webpage, the fully compiled app.css file in my public folder is completely replaced with:...
Mix
22
182
cjbannister cjbannister
5

Laravel is trying to run a migration which doesn't exist

I have a migration named 2019_10_03_000001_create_customer_columns. When I run php artisan migrate I get an error: Migrating:...
Laravel
5
170
lperry65 lperry65
6

Load Balancers

I have a Laravel 7 APP with two instances behind an NGINX load balancer, I've set up Trusted Proxies as described in the Laravel docs but I don't think it's working . As so...
Laravel
6
105
evautier evautier
0

TwigBridge vs Blade for package view override/addition

Laravel 6 has Package Views & Laravel 7 introduced Package View Components. I believe these may be used to create a package with the capability to add or overrid...
Vue
0
15
othmannl othmannl
4

Can't use route in HREF in output AJAX

I want to output searched data from database and this line is not accepted, I don't know why This line <a href='{{ route('retour.show', $retour->id) }}'...
belipero belipero
0

Count of two tables considering group by

Hi! I'm developing a classic Top 10 table and I'm getting the expected results with the following code: $top10offerdemandsbyagent = DB::table('offerdemands')...
andreasbergqvist andreasbergqvist
0

Events and broadcasting

Hi So we are building an mobile app with an Laravel backend as an API. Content is created, updated and deleted from the app. Events are broadcasted with Pusher to al...
aGandrass aGandrass
0

SendGrid Webhooks Setup

Hi, I am trying to set up my SendGrid Webhooks for receiving all responses. With SendGrid sometimes you get two or more events per Webhook sent: [ { "email"...

A custom query builder to support with, filters, sorting and pagination

Hello, I'm currently working on a project that has somewhat complicated filters, sorting and relations on every view. The views cover: sorting by...
madsynn madsynn
0

Laravel on Google Cloud AppEngine

Hi everyone, I am trying to implement laravel app on app engine but i keep getting this error and im wondering if any of you have had this issue as well as a couple...
brunitosessa brunitosessa
6

Resource API data

Hi, I'm trying to send data to an App using Api resources. I have "Bar resource", that has to include the distance (using latitude and longitude) from an User to...
Laravel
6
108
noblemfd noblemfd
1

How to make Laravel FullCalendar not to scroll or display beyong the current year

I am using FullCalendar in my Laravel-5.8 application: Controller public function index() { $leaverequests = HrLeaveRequest::all(); retur...
jrrmcalcio jrrmcalcio
5

Videos from a serie not autoplay the next one

Hello, is there anything i can do to have the next episode to play automatically? they are not moving on as before :(...
Create a New Discussion Button