pcabral pcabral
3

Laravel in Container

Hi @all! I am trying to put my app inside a container. I a using alpine PHP image with the base image. When I try to access my application...
Mubeenali Mubeenali
4

How to start laravel-echo-server on Live Server?

On Localhost we run laravel-echo-server start On live server what is the procedure to start it....

Modify User in Controller - Integrity constraint violation: 4025

Hey there. I am currently working on making it possible for my Users to link their Social Media Accounts to their Accounts on my Website using Socialite. When being redirec...
webfuelcode webfuelcode
8

Undefined index: user

Undefined index: user (View: C:\xampp\htdocs\machine\resources\views\profile\notifications.blade.php) Why do I see the undefined index err...
Mubeenali Mubeenali
1

Laravel redis socket io connection refused error on Live VPS Server.

I have build a chat with socket io redis in laravel 5.8.everything works perfectly on localhost.But when i deploy it i am getting Failed to load resource: ne...

Collection forget() method does not remove items

Hi, Why does this not remove the "item/id" from the collection? The foreach loop keep grabbing the value. Code: @php # Flattern m...
webfuelcode webfuelcode
2

Is this the correct way to display unread notification?

I am little confused if it is correct or not. As I am showing a page for all unread notification and not sure about the auth. Please look and make it correct if wron...
sohail49 sohail49
2

Js File get Complie But No working

Hi I am using laravel mix to compile my sass and js the Scss work fine but js get to compile and do not work here is my webpack file code let mix = require('laravel-...
Mix
2
38
kennan kennan
2

Livewire id

im studying live wire, seems the best choice, i not know much of front end, and this is easier for me, i am using strings as pk's, and have some of them starting with 0 (01...
redroseamit redroseamit
2

user roles are fetching in create user form but not adding user role in database

<!-- /.content-header --> <div class="container"> <div class="columns m-t-10"> <div class="column"...
bballantyne bballantyne
3

Horizon doesn't read jobs from Redis

I need some guidance please. I've read all the Horizon-related questions but I still can't pinpoint the source of my issue. I have Horizon installed on one server,...
JeffreyWay JeffreyWay
242

Laracasts Refresh

As you may have noticed, Laracasts has a new pair of pants today. A few quick notes on this: There is no scenario where I undo three months worth of work, so p...
Feedback
242
6273
Formatink Formatink
5

Nested comments with eager loading

Hello, I am currently doing a nested comments system. In my model, I use this method to retrieve children of the comment pu...
kennyS kennyS
12

current user in middleware

Hi, I want to get my current user data in a middleware public function handle($request, Closure $next) { if($request->user()-&...
Laravel
12
2184
nathangross nathangross
9

Polymorphic trait?

I am building out a polymorphic (morphMany) class called Follow and a trait called Followable. I'm struggling with getting the right...
Laravel
9
108
Rival Rival
4

Error Install Tailwindcss in laravel

i have error in installing tailwind css here is my error PS C:\xampp_7.4.2\htdocs\laravelproject\laravel-movie-api> npm run dev @ dev C...
lse123 lse123
2

can you debug --- how to create App\Mail ????

can you debug --- how to create App\Mail ???? history cmds: 337 composer require guzzlehttp/guzzle 338 composer fund 339 php artisan make:mai...
BrownieCoffee BrownieCoffee
1

Display modal for specific user

Hi there. I have js file and blade.php file I would like to display modal to his user. Actually I have this logic bellow....
oxbir oxbir
5

How to add `slug` to `href`?

Look at my codes, I want to save the information, then everything falls apart. I have three tables, houses & categories & cat...
Laravel
5
115
Chron Chron
6

How to only load needed js file?

I'm using Input mask v3.3.11. Here is the github: https://github.com/Ro...
singh singh
1

Laravel Dynamic Subdomain with Tenancy

I am looking at Tenancy - https://tenancy.dev/ to build a multi-tenant application with...
santino santino
3

Help calling information from products model

Hi, I want to know whats the best way to make this action, I am calling all the products of a model table like this and get this object model return $produ...
abela abela
2

[Alpine.js] Property or method "sidebarIsOpen" is not defined on the instance but referenced during render.

js/Layouts/Docs.vue <template> <div class="flex h-screen bg-secondary overflow-hidden" x-data="{sidebarIsOpen...
Vue
2
55
kakallatt kakallatt
2

Spatie Crawler: Some links always return 503 Error on production

I run a crawler on my website and there are some links from Amazon that always return 503 code on production, but they return 200 in my local machine. Does anyone have any...
kbuczynski kbuczynski
6

Relationship in DB does not exist

HI I been trying to connect my tables together in postgres but I am keep getting a SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "crm_company_addresses&q...
brayniverse brayniverse
1324

Where are you all from?

I'm wondering how far Laravel's reach extends to. I hail from London myself....
General
1324
25446
ChrisF79 ChrisF79
1

How to save to a database with multiple tables?

I have a Users table and an Address (mailing address) table and I have the relationships set up as such: User Model class User extend...
ChrisPercival ChrisPercival
2

414 Request-URI Too Large

Hi all, I am getting a 414 Request-URI Too Large error. The record I am saving has several text fields & testing shows that there is a point were there to...
General
2
636
G89Angel G89Angel
2

Setting multiple domains for a route group

Hello, I need to add a new subdomain to my application and therefore I need to expose all my routes to that new subdomain. My first though was to repeat the w...

How to get keycode in an input event

Here is the code: let el = document.querySelector("input[name='test']") el.addEventListener('input', (e)=>{ console.log(e.keyCode) })...
BrownieCoffee BrownieCoffee
2

Update datas if there are changing

Hello guys, I would to update user profile. I'm trying to find logic to update a specific field or all fields if there are changing. For example, if user decides to...
Martinkovic Martinkovic
10

Applying authorisation policy for nested resource

Hi, I'm listing answers to specific question by this route: GET api/question/{question}/answer . Currently, I am trying to apply policy that will ensure that...
Laravel
10
1071
BoSkiv BoSkiv
1

Enum Package to choose

I'm confused. Which one package I should use with less effort in future? We have...
General
1
108
mallaury mallaury
6

Get withCount() of nested relationship

Hello, Here is my problem: In my database I have departments that have lessons. Lesson belongs to many departments. So there is a pivot table named department_lesson...
kriolo_developer kriolo_developer
4

Eloquent nested relations with whereHas clause

Hello Guys, I have the following relations structure: cabinets > drawers > folders > documents. I want to get only the documents that the user has ri...
Laravel
4
2808
Create a New Discussion Button