princeoo7 princeoo7
3

Eloquent with, withCount gives 12 as total records but the function with groupby on date gives 9

I have 3 tables, Users, Tasks, TasksSession. what I am trying to find is total session conducted and total days the user was involved in that task based on cre...
rmobayen rmobayen
3

Request $request vs. request()

Hi, everyone there are two approaches to access the requested values is there anything that makes either of them a better approach? what is the difference(s) between...
undefined_variable undefined_variable
0

Google autocomplete doesnt work when compiled with mix, why is that?

Google autocomplete doesnt work when compiled with mix, why is that? So I'm trying to clean things up a bit, and I want to put the google autocomplete code in its ow...
Mix
0
8

MySql remote login

laravel's .env file's debug mode is ON by default. and for a syntax or whatever error you can see my .env variable, right? well, you have my mysql username, databas...
skinnyvin skinnyvin
23

$this is null inside model

I am in a tangle with counts and relations and noticed that $this is null on methods within the Store model. I am only interested in Visits belonging to the...
laza89 laza89
4

Laravel works with artisan serve but not with vhost

I have installed fresh Laravel project and the welcome page shows up when using artisan serve, but when trying to access via vhost the page seems to be reloading infinitely...
laraadmin laraadmin
3

LaraAdmin - Admin Panel for Laravel

Hello Artisans, I have worked on many SugarCRM Projects in past. Inspired by that I have created a Admin Panel in Laravel which has following features:...
c3422867 c3422867
11

DB::update query

I am trying to use the query using the valided values, $book_name, $isbn_no & $book_price and ofcourse the $Id but the query doesn't work. public function update...
General
11
46
ra707 ra707
10

Own Crypto cyrrency token payment gateway

i want to add my own coin as deposits and withdrawls function through api . please help me how to do this...
Laravel
10
57
msforbes09 msforbes09
1

Legacy People API has not been used in project

Im having problem using socialite, i get this response GuzzleHttp\Exception\ClientException: Client error: GET...
spectatorx spectatorx
2

Two factor authentication as an option

I'm researching now something what i could use for two-factor authentication in laravel 6. What libraries would you recommend? I would assume there already exist decent sol...
RFFRED RFFRED
5

Repeated fields

Hi, What is the best way to handle repeated fields in Laravel? I have all the relationships working, all the necessary JS to add/remove the fields, It just does not...
Denason Denason
0

socket in laravel

how i can use socket php programming functions in Laravel ? socket_create() and .... do u know laravel packages for this ? [ i want to give data from...
jlrdw jlrdw
3

Update upgrade laravel then framework (guide)

Some folks don't realize there are two main repositories for Laravel. Laravel = app Framework = vendor stuff Also there is updating and...
Guides
3
103
Ap3twe Ap3twe
2

Horizon Gate not working

limiting access to my horizon and Telescope gate is not working. Anyone can access it although I have defined the user. It is on local server. Does local environment give p...
hafiz_r hafiz_r
4

Validate unique key with custom message?

Schema::create('appointments', function (Blueprint $table) { $table->increments('id')->onDelete('cascade'); $table->integer('stude...
thebigk thebigk
4

Eloquent User Provider Causing Duplicate Query

I'm required to calculate the current 'rating' of a user (model) based on a relationship with Activity(model). I therefore have the following in m...
untymage untymage
5

Hit controller manually and send data to it

Sometimes i want to hit a controller without touching the routes, How to call or hit a controller and send data to it class AnotherCont...
masumluf masumluf
4

Laravel Controller edit function issue.

Hello Developers,I got an issue at my controller edit function. I dont see any value if i dd($brightStudent) This is my controller code below, <?php name...
nikankad nikankad
10

i am hosting my website on cpanel and i cant run composer update

whenever i run composer update it crashes with the message "killed" i contated go daddy support and they said this is because im using a shared hosti...
Laravel
10
66

Task Scheduling - No scheduled commands are ready to run.

I'm trying to use Task Scheduling in Laravel, but it does not work. Here is my code: protected function schedule(Schedule $schedule) { \Lo...
Seeker1337 Seeker1337
3

Laravel 6+ change default cookies' behavior

Hey there. I started learning Laravel a few weeks ago and I'm currently building a website. What I've noticed about the Cookies is that when you visit any page of the websi...
PJijin PJijin
10

Eloquent query to filter same column values

Hey I want to get the product_id from this table Table product_filter I want to get the product_id...
Eloquent
10
113
bhushan bhushan
2

Cant load trait from app\achievements folder

[07-Dec-2019 21:54:51 Asia/Kolkata] PHP Fatal error: Trait 'App\Achievements\Traits\hasAchievements' not found in /home/bhushan/qna/app/User.php on line 13 I am get...
jamesmarsh43 jamesmarsh43
3

Advice Please

Hi all, is there a solution to the following: I would like to have a scenario assessment form in which data is entered and inserted into a database table. This bit I can do...
bhushan bhushan
4

Is it safe to use inline template in laravel vue

i can see all the implementation calls when i check view source of the page. it shows every event how we are handling things....
Laravel
4
117
MwSpaceLLC MwSpaceLLC
32

No scheduled commands are ready to run | empty

Laravel Version: 5.7.25 PHP Version: 7.2.14 Database Driver & Version: MySQL 2ยช gen. 5.7 Hi, Sorry for the trouble,...
Laravel
32
1159
icelander icelander
1

How to load jfif pictures

Please how do I show a .jfif picture file extension on my Laravel app. Whenever I use the .jfif file, it doesn't show....
thorbym thorbym
2

Blade, partials, javascript, structure!

Hi. So. I'm not new to PHP (have built many apps over time) but am new to Laravel. I'm just making a simple app with a table of data and some filters to reduce it ac...
trogne trogne
5

assign middleware to only api group

The laravel doc is unclear on how to assign a middleware to only a group. Here a "cors" middleware in Kernel.php: 'api' => [...
NasirNobin NasirNobin
1

Export to XML showing error

I'm using Laravel-Excel v3.1 with(PHP v7.2.24, Laravel v6.2) to import/export data into various formats. But i'm having trouble while exporting to XML. When i'm exporting t...
sowndhar7 sowndhar7
1

Laravel XSRF-TOKEN is not returned

Hi i have an application with angular front end and laravel for back end when i tried to get xsrf-token in ajax call laravel only returns the session data in the set cookie...
hafiz_r hafiz_r
7

Inbox functionality from user to user

I will start by saying sorry as i am very new and using laravel for my final year project. I have completed most of it with lot of struggle. But i need to add a inbo...
Kunzilla Kunzilla
0

vue router for modals and back buttons

Hi there, i created a vue component with swiper js galleries and want to set browser history if i click on an photo wich opened in a modal window. Currently i set th...
Vue
0
11
tealiedie tealiedie
3

How to change primary key of related model in belongsToMany relationship ?

guys. how can i set related model primary key in my belongsToMany relationship ?.. public function directories() // here i need to change Provider's primary...
Create a New Discussion Button