nexxai nexxai
0

Weird HTML output when testing omnipay

So I built a cart that uses omnipay and when I run one specific integration test that actually tests the purchase, for some reason, it dumps the HTML output that PayPal ret...
mikaeljorhult mikaeljorhult
0

Check if local scope has been applied

I use local query scopes in a model to add a few sub queries to aggregate some values. These are then displayed in my Blade templates and used as conditionals to show certa...
Loomix Loomix
2

Enabling mouse scroll wheel for modal dropdown list

I have a bootstrap modal window popup with a Select2 v4 (https://select2.org/) dropdown list (...
ajsmith_codes ajsmith_codes
5

Gantt chart or calendar for Laravel 7?

All the posts on this forum are years old regarding Gantt. I need to add Gantt functionality or be able to show projects/tasks on a calendar in Laravel. I have tried...
Laravel
5
597

Get user agent

I have a situation at hand. Got a domain covid19zim.online and recently developed a dedicated mobile web version to be served on m.covid19zim.online. So my question...
oussamaSid oussamaSid
0

Argument 1 passed to Illuminate\Mail\MailManager::getConfig() must be of the type string, null given,

i'm trying to make a custom email configuration in the service provider, and when trying to send an email i got this error Argument 1 passed to Illuminate\Mail\MailMa...
devondahon devondahon
4

Prevent a user from logging in if $user->foo()->exists() is FALSE

How to prevent a user from signing in if $user->foo()->exists() = false ? foo() is a one-to-one relationship set in my User.php model...
andrewcloss andrewcloss
0

Importing JS class from a blade

Hey folks, No matter what I do I can't call a class located in a JavaScript file from my blade file. I've simplified this as much as possible to a function an...
Mix
0
19
deepu07 deepu07
3

FormRequest for Update call

Hi Mates, I'm using Laravel FormRequests for validations. I'm using form-request for update request somehow it is redirecting to the homepage. also, I'm using a passport fo...
dlook dlook
0

Keep session across multiple instances

So I have a weird client; they have 5-6 Laravel sites (across a couple different servers, and domains/subdomains). Some of them use the same database (and app key) some hav...
phreshphish phreshphish
0

Date fields always in US format within Dusk tests

When running dusk tests, date fields within the test are always in US format but I required them to be in British format. My chrome options look like this: $...
tdias25 tdias25
3

auth()->guest() returns true even if logged, using custom auth

i created a couple custom auths and added it in auth.php, they're working just fine. the problem is when i try to use the auth()->guest() facade to check if any a...
ajsmith_codes ajsmith_codes
6

Retrieve old value of select - using ajax/javascript - Laravel 7

I'm still a newbie, so please excuse my lack of knowledge and/or any incorrect terminology. I have a select that is populated based on the value of another select: W...
Laravel
6
102
msslgomez msslgomez
1

Get request on server returning 500 error

I'm using Inertia.js to do the request, it works perfect locally but when tried on the server it returns a 500 error GET http://url.com/result/filter?period=...
Alex_B Alex_B
3

anyway to fix request()->validate error: array_map():Expected parameter 2 to be an array, int given

private function validateRequest() { return request()->validate([ 'name' => 'required|min:3', 'role_id' => Roles::c...
megaman megaman
2

getting an array of related collections

If you have a model which has many related rows you can put all of the related rows into a collection with something like this. $relatedRows = collection::ma...
talelmishali talelmishali
0

axios response language other than English

Hey! Whenever I have an error response from the server in a language other than English with axios, the response it's encoding it as C/C++/Java source code {...
Vue
0
25
andyandy andyandy
1

app.js is loading for 20 seconds

I uploaded my project on the server. But page takes at least 20 seconds to finish loading. It seems like a app.js is the cause....

Class 'App\Http\Controllers\API\GuzzleHttp\Client' not found"

i use clickSMS api in my REST Api laravel 7 but when i use the code in controller i have this error "Class 'App\Http\Controllers\API\GuzzleHttp\Client'...
noblemfd noblemfd
4

Laravel Azure AD Authentication redirect me back to Login Page

I am using Laravel-5.8 for User Azure AD Authentication. I installed this package: composer require socialiteproviders/microsoft-azure "socialiteprovide...
Laravel
4
466
SmokeTM SmokeTM
1

Put spam protection in place on my comments?

I did the series https://laracasts.com/series/le...
coolsaint coolsaint
15

How to Format Laravel Blade Codes in Visual Studio Code ?

I have installed some Visual Studio Code extensions to handle Laravel Blade Codes like laravel-blade [...
Laravel
15
9221
auroralabs auroralabs
3

Sending Form data to salesforce

Hi, Can anyone point me in the right direction for integrating the Salesforce web2 lead form with Laravel. Ideally what I'm looking for is a way to save a new user t...
Laravel
3
477
shami003 shami003
4

Can't downgrade jquery version

Hi, I want to downgrade jquery version from 3.5.0 to 3.4.1, I have tried to change it in package.json file but it shows the same 3.5.0 version. My bootstrap responsive navb...
SimranKahlon SimranKahlon
6

Multiple Databases in Laravel.

We are building a multi-tenant application. Through the admin interface, we will add new tenant as and when required. This application needs to work with 1+n database. 1 Ma...
Laravel
6
280
sirbobz sirbobz
0

How scalable are relational databases?

There has been a lot of talk about non-relational databases and how they are better than relational ones. At what point should one start thing about shifting to them...
Tips
0
30
trifek trifek
0

Generate multilevel dropdown menu Bootstrap 4 in Laravel

Hi, I am beginner web developer. I have project with Bootstrap 4 and Laravel 7. I have this code: <nav class="navbar navbar-expand-lg text...
joshmakar joshmakar
0

Accessing child elements of $refs by class name

I'm using Simplebar-vue and need to scroll it to the top. I've successfully managed to do this with: <template> <simplebar id...
Vue
0
17
nspaul nspaul
2

Form Request validation rule, 10 or 16 digits - use pipe for either/or?

I have a use case that is somewhat unique but not particularly weird, and I thought I'd get some input from the community since I can't find a clear answer. I have a FormRe...
_chris _chris
1

Auth from Laravel UI for API

Hi all, I'm trying to create my first REST API in Laravel using Passport. I'm used to adding in laravel/ui for all the auth functionality/password resets etc. but do...
Pakku Pakku
2

How to limit api routes to self web requests

Hello, I have a Laravel web application that make ajax requests to my own api routes. The web has no user system, and i'd want to limit the api routes so no one coul...
ajithlal ajithlal
1

only two of my css files returns 409 conflict error

I'm getting this error Failed to load resource: the server responded with a status of 409 (Conflict) for my two CSS files. There are a few more CSS files loadi...
RoboRobok RoboRobok
12

Why isn't Laravel core still type-hinted?

Newest Laravel requires PHP 7.1.3. Primitive type hinting is there for a while, but Laravel core still doesn't use it. Even Symfony has its core type-hinted now. I c...
Laravel
12
145
engrlaravel engrlaravel
1

where condition on hasMany relationship

I have two tables letters(Model Letter) and letter_users(Model LetterUser) letter_users has letter_id & user_id. I have below rel...
Create a New Discussion Button