Crazylife Crazylife
4

How to set persistent database connection for different user from different country login?

I have tried to use middleware, e.g. $country = $request->route()->parameter('country'); DB::disconnect(); Config::set('database.def...
pro_raheel pro_raheel
3

laravel-apidoc-generator call to a member function prepare() on null laravel mongodb db transaction laravel 5.7

I am using jenssegers/laravel-mongodb with laravel 5.7 and want to generate API documentation using laravel-api-doc package...
Laravel
3
127
berkayk berkayk
10

Auth::user() returns unexpected user

Hi, I have a Laravel 5 app where users write some questions etc. Sometimes, Auth::user() returns another user's data and I am not able to find what causes this....
Laravel
10
247
sandygajera sandygajera
5

Login user data not fetching on new request

Hi, I have facing one issue in laravel 5.6 Auth. First time user login into system using auth::attempt() successfully and same that page auth::check() return...

Multiple variants of same app...how to manage

We have a partner for whom we are going to build a white label app that is very similar to our own app. The core functionality will be the same. There will be minor change...
tanmay_das tanmay_das
4

Laravel event is not broadcasting on production server

I am using laravel-websockets package for some real-time features. I am using redis as queue connection. I have an event TestUpdated which I am broadcasting on...
ChrisF79 ChrisF79
3

How do I output a JSON variable?

I have the JSON below. All I am trying to do is output "Theme Reviewer" as the author name. I tried $post->_embedded['author']['0']['name']...
Desory Desory
0

Laravel Chatapp 5.2 and latest

So I've decided to implement a chat app on my running 5.2 website but everything I can find online is with laravel 5.4 and vue and I don't really know how elixir and webmix...
galih56 galih56
11

Auth::user() returns null value

0 I'm working on username authentication. I thought my LoginController is working perfectly.But when i go to the page and do login.The page will be stay on login pag...
Laravel
11
137
ssquare ssquare
9

Return ID From updateOrInsert Laravel query builder

How to return the id of las updated or Inserted id. I am using query builder instead of eloquent. How can I return ID from the following example: DB::...
Laravel
9
119
Rangana Rangana
6

API Integration

I need to integrate the following API questing using Laravel. how can I do this We would like you to make a connection to the mentioned API using below detai...
Laravel
6
162
zfdeveloper zfdeveloper
0

Create a custom API wrapper

This is not directly related to Laravel but I'm going to use in a Laravel application. I need to create a wrapper to an API and I wanted to create something similar...
murilo murilo
12

cloning my project , NPM is not rendering all the Js code properly

Hello Guys , I have a problem here that I dont know how to solve . I have a website that I created , It is in laravel 5.6 and VUE js , if I try to render the javascript co...
Vue
12
133
vincej vincej
10

How to format nested set table data to work in JsTree?

I have been trying to use jsTree.com to deliver a dynamic tree of categories in my view. However, despite following the instructions as given both...
Laravel
10
82
Gabotronix Gabotronix
0

Issue with chart.js and vue

Hi everybody, I'm trying to use chart.js with vue, so far results have been good but when I get my chart data via axios (data is not there when chart component is mounted)...
mouzak mouzak
6

laravel increment with condition

Hi, I need help please I want to increment the colone 'cumulconges' of 2 days at each "end of the month ie in every 30 days. how to add this condition to this query...
Laravel
6
111
RootTech RootTech
7

Coupon code verification upon registration

I have a table on my database in coupons_code with randomly generated chars. I want users to input a coupon code when registering, then the code should be verified t...
nikocraft nikocraft
0

how to process my array to be associative on first two levels and on third to have simple value

I'm trying to construct an array where there only strings and the array would look like this key->key->value To explain it I attached two screenshots below....
Gabotronix Gabotronix
1

Laravel Form Request custom error message for regex rule

Hi everybody, I'm trying to display a custom validation error message for my regex inside Form Request, I haven't succeded so far. This is my Form Request logic, reg...
chechogrom chechogrom
0

which loop while I should use and how

Hello everyone, I have a form in which I have a select with the plugin select 2 and I have the option of tags = true, in this select I send name-value-description (optional...
tmcguire tmcguire
0

Using hasMany on a pivot/intermediate model

Hey everyone! Quick question about intermediate/pivot models, and how to hook up relationships from those models. I have four models: Us...
winner1 winner1
0

Generating guest tokens

I'm using passport on my project I want to make some specific routes accessible for all of my API users without using username and password to take an access token...
winner1 winner1
1

creating a password grant client without artisan command!(passport library)

I'm testing the oauth password grant type by Passport library first i made a client by this command and got a client id and secret: php artisan passport:clie...
evripidesk evripidesk
7

Laravel Blade and Javascript

Hello I have the below blade with datepicker but is not working the datepicker (no error in concole) @extends('layouts.app') <head> <title&g...
cameronscott137 cameronscott137
1

Filter by a Non-Null Value in Laravel Nova

I'm trying to implement a basic filter using Laravel Nova. The filter looks at the field "onboarded_at," which is a datetime field. If the attribute has a timesta...
Nova
1
43
neeonline neeonline
2

Model::paginate() and then ->append('attribute')

Hello all, I'm using Laravel's Database Pagination (https:/...
chrispage1 chrispage1
7

Attaching many to many relations while still binding to created event

So I've run into this issue a few times and now I've decided that I want to find a better solution. I have two models, Order & Product. There is a many to many r...
zahidgani zahidgani
4

How to upload file private mode and retrive by generated url with expired time in aws s3 in laravel 5.3 or 5.4

Here is complete code: upload file in aws s3 from laravel 5.3 or 5.4 Run: composer require league/flysystem-aws-s3-v3 set in config/filesystems.php...
Laravel
4
1086
chrisgrim chrisgrim
2

Filtering through array for specific name

Hi, two questions here. First is if I am doing this a stupid over complicated way and second, why is the way I am trying not working? I have a selector dropdown that...
Vue
2
29
amirhazz amirhazz
4

Changing the GitHub username?

Hey guys, Has anyone ever had experience of changing GitHub username while some of the repositories are in productions? I wanna know what happens and what to do in s...
mostafalaravel mostafalaravel
4

what's the best WYSIWYG

Hello I'm looking for a free WYSIWYG, very simple to implement and very very basic (strong text, paragraph ...) thanks for helps....
lcopeland lcopeland
4

Laravel 5.2 Multi-Auth with API guard

Hi all. I'm trying to get a multi auth system working where Users can log in via the normal web portal, but a separate database of entities called Robots can also log in vi...
Laravel
4
293
twoarmtom twoarmtom
1

Inserting the information for a range of dates

I'm trying to find examples of properly looping through a range of dates to insert information. Currently, I am creating a schedule row with the user, location etc.,...
aishahyaacob aishahyaacob
4

read all data

how can i display the score based on the user id? now, i had problem when user 2 login for the first time, basically it must only show one score. but right now it also disp...
johnef_sh johnef_sh
3

Easy way to convert raw mysql query to Eloquent

How can I convert a row MySql query to Eloquent I have a query like this SELECT * FROM ( SELECT products.id, products.image, products.price, products....
Create a New Discussion Button