lse123 lse123
7

auth in Laravel 8.x - what run in cmd line artisan

auth in Laravel 8.x - what run in cmd line artisan : this only: php artisan jetstream:install // is OK or needed additionally and more artisan commands ????...
Rainieren Rainieren
3

Laravel 8 - Dispatch a scheduled job every Minute

I am working on fetching all my GitHub repos with a job every minute so when I make changes to any repo these changes automatically go to my website as well. I created a jo...
Hekmatyar Hekmatyar
1

Sending mails without smtp - Laravel 7

Hi, im doing this for first time, can someone explaine to me how can i do it? for now mails are saving in database but i want to sendmails to email without settings smtp (u...
msslgomez msslgomez
12

Store value globally in controller

I need to save a token to then use in all methods of a specific controller, I tried putting it in session but then when I try to use it it says it's null....
General
12
70

Laravel Passport Unauthenticated after composer update

I posted this question on stackoverflow last night, but there has been no activity. Wondering if someone on here could help? I've been working in this application fo...
ollie_123 ollie_123
0

Stuck trying to update pivot table with role_id

Evening All. I'm trying to update a pivot table with a role_id of a user but it keeps returning an error of Collection::roles does not exist. I'v...
Azeem812 Azeem812
6

how to access all variable data in in ajax success function ?

Here is my controller public function detail(Request $request) { $item = DeliverySchedule::find($request->id); $item2 = DeliveryScheduleItem::where('delivery_schedule_id...
theUnforgiven theUnforgiven
11

Eloquent when condition question...

Hi all, I have the following code which seemed to work for the type but when I add more for postcode, bedrooms etc it doesn't then work....
RFFRED RFFRED
4

Admin models and relationships

Hi, i have an admin model which I use to login to my site. I have 6 different types of administrator and their roles/permissions are managed by spatie/permission....
shineraj shineraj
12

Migrations Taking too long time

I have a table with 1M records. when I try to add a new decimal column, it is taking too much time to complete the migration. what is the solution?...
Laravel
12
93
shineraj shineraj
6

Compare sum of relational column

Hi, Can i compare sum of the relationship column with my parent table column without using joins ?...
moktar moktar
2

any idea how i can refactor this ? what is best practice ?

if ($event->isHoliday()) { if ($status === $event::PENDING && $event->approved_by == null) { $event->resetEmployeeBalan...
noblemfd noblemfd
40

checkbox stores 0 whatever value the user enters

I am using data-bootstrap-switch checkbox in dynamic input field Controller: public function store(StoreLeaveTypeRequest $request) { $leavetype =...
Laravel
40
548
Robert_Wlliams Robert_Wlliams
6

Storing date on request in created at entity.

Actually I have Installment management system. system is working perfectly but now i want that when i sell my product i can use any desired date and system automatically ge...
saurav77 saurav77
3

Vue packages version mismatch in Laravel

Vue packages version mismatch: [email protected] [email protected] How should I solve it?...
Vue
3
18
Ev-genius Ev-genius
5

Linking table

Hello! Need to design a database for the training service. I made tables: Categories, exercises, programs and one linking table programs_exercises:...
mikelann23 mikelann23
5

Laravel 8 and Vue 3

Any plans for a Laravel 8 and Vue 3 Laracast? A "From Scratch" would be awesome...but any Laracast using both would be awesome...unless I am just missing it?...
ipearx replied
Solved
Laravel
5
124
gianmarx gianmarx
8

form not change data

I don't understand if the error is in the form or in the controller: controller public function update(Poll $poll) { $poll->status='new'; $...
GillesDeb GillesDeb
6

LARAVEL INSTALLATION > New Day > New Topic > New Question

Hey all! I'm following the "Laravel from Scratch" course and already stuck (0_O) at ep.3... Well stuck is a big word, but I hope one or more of you can hel...
Laravel
6
113

UPDATE USER ON THR PROGRESS OF A RUNNING QUEUE

I have queue that sends bulk emails, I want to update the user on the progress of the number of email sent. Like 1 of 60 sent and so on. I can't seem to use sessions. Writi...
nara014 nara014
2

laravel route was not detected after enabling php artisan optimize

hello, I want to report anomalies when using laravel, actually this happened in version 5 too. So, when I finish installing laravel. i am trying to use artisan optim...
streamingsystems streamingsystems
0

Getting Job Id

Hi, I am interested in getting the job id (database connection) for jobs. I am seeing some discrepancies and wanted to get some input: These give me an...
spacedog4 spacedog4
1

Prevent broadcast notification to be added to the queue

I'm using queue to generate some document, after generating it, I send a notification to the user, telling that his documents has been generated, but after sending the noti...
Tray2 Tray2
2

Update to Laravel 8 breaks login

A couple of weeks ago when Laravel 8 was released I upgraded my project and spent hours on fixing tests and factories and got my so far 400+ tests to green. Since I'...
Tray2 replied
Solved
royksoft royksoft
0

Alternative to "new up” objects in other objects

I'm a new developer just getting started with testing. I see in a lot of places that it's a code smell to "new up” objects in other objects. I'm wonder...
UniqueHope UniqueHope
1

Appropriate way to update number of entries from db in real time?

I've read about a number of solutions like polling, SSE and websockets, but at the end of it I feel like I still have no clue what to decide on since I've only started work...
jcc5018 jcc5018
0

Counting models associated with category along with children.

Hey again, So I am still trying to figure out how to do this. I have managed to get the parents and child models for display when clicking on a parent category, but I am ha...
Bahjaat Bahjaat
6

php artisan tinker throws Parse error (unexpected T_PAAMAYIM_NEKUDOTAYIM)

Somewhere lost today. Already cleared the vendor folder and updated packages one after another. Also removed a couple of packages. Nothing helped. How to debug this...
farshadf farshadf
1

how to make jpg file from a blade view in laravel (making certificate for users)

i want to give my users some certificate that they can share on social media . i see that laravel have so many packages to export blade file as exel or pdf but as they are...
TrentDPT TrentDPT
2

Jetstream with additional Livewire Pages

I'm a bit confused on the structure of Jetstream. I cant seem to find how they route from dashboard to the /user/profile page, and am I supposed to repl...
mariojg mariojg
1

Install or upgrate vue js 3 in laravel 8??

How i can install vue js 3 in laravel ?, i am having problem with the webmix teling me that vue is not define but the folder is inside the node....
msslgomez msslgomez
17

GET method is not supported for this route. Supported methods: POST.

I'm using a post request, this is the code //API routes Route::post('getToken', '[email protected]'); //getToken Method $client = new Clie...
General
17
90
drewdan drewdan
5

Products related to Categories, but how

Hi Guys, I am a little confused and although I am sure there is an answer on Google, but I do not know how to work my question, so cannot find it. I had produ...
santino santino
2

how to +1 to DB

Hi , I want to add +1 to the counter of the DB but how?? got this public function addGuaranteeTry() { $this->update( [ 'guarantee_trys' => // here g...
JerryBels JerryBels
1

Localize app with jetstream

Hello, I'm trying to start a project with jetstream, on Laravel 8, while handling multiple languages. All views in Jetstream are already set to be translated - so it...
Create a New Discussion Button