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...
Laravel
8
107
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...
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"...
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
2192
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...
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
123
singh singh
1

Laravel Dynamic Subdomain with Tenancy

I am looking at Tenancy - https://tenancy.dev/ to build a multi-tenant application with...
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...
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...
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
1078
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
2812
Methmi Methmi
1

Create PDF on searched view

This is my controller to the search, searched view and pdf generation public function mdaterange(Request $request,$id) { $machines = Machines::...
Foks Foks
10

Polymorphic Relationships doesn't fill out the fields

Hello, I'm having an issue with polymorphic relationships, when I try to make the relationship it doesn't fill out all the fields that it should. I'm using the Socil...
chr15k replied
Solved
Laravel
10
186
leodahal4 leodahal4
2

Deploy Laravel on Bluehost

I am having trouble hosting my ready laravel and vue app on Bluehost. I am getting the error, This package requires php ^7.2.5 but your php version (7.0.33) doesnot satisfy...
Methmi Methmi
2

SQL error

This is my Controller public function pdaterange(Request $request,$id) { $projects = Projects::find($id); $sdate = $request-&g...
automica replied
Solved
davy_yg davy_yg
9

Can you write dd(); in the view ?

Can you write dd(); in the view ? I wonder how to dump variable in view? <ul id="w1" class="navbar-nav pull-right nav">...
Laravel
9
15700
lavnishad93 lavnishad93
8

convert a sql query to php laravel query

I am new at laravel so i want to convert a query to php laravel query. SELECT c.id ,c.name,c.image,c.status,count(pv.id) as product_varients_count, (select...
Laravel
8
134
sagar001 sagar001
2

Call to undefined method App\Article::tags() Error

When i am passing data to this method i am getting "Call to undefined method App\Article::tags()". In my article model there is a method protected...
sagar001 replied
Solved
webfuelcode webfuelcode
1

How to use diffForHumans in notification?

I am trying to use notification time in an easy form to read. Like diffForHumans... How to make it here: {{ $notifications->data['user']['created_a...
prasadchinwal5 prasadchinwal5
7

Laravel Telescope keeps scanning

Hey everyone! I just installed a fresh copy of laravel telescope in dev. I can access telescope at /telescope. And i get the usual screen as shown below....
Laravel
7
2011
Lethal-Bacon Lethal-Bacon
7

Trying to get property 'id' of non-object

Alright im trying to make a relatively simple blog using laravel and i ran into some problems, fixing 1 error by 1 you get more and more new ones as some of you probably kn...
weavers54325 weavers54325
11

Paginate while returning array of Api resource objects to the resource collection

I need to send multiple objects to the api resource colection. So I am returning multiple Objects inside array. Everything works fine but not showing any pagination meta da...
Laravel
11
4265

Schedule task exist before completing task

Hey guys, I have this weird scenario where a scheduled task exist before completing in a laravel 6 project. My intention is to have a couple of rows updated in my da...
Payman Payman
3

alternative for valet .test domain

Hello, I am using laravel valet. Already I set valet to use .dev and .app domain in local environments but after facing problem with .dev and .app I changed valet do...
Laravel
3
399
CrazyVito11 CrazyVito11
9

Get belongsTo item value only, not as object

So I have a model that remembers a filename and tags of a image, so you can search through a lot of images easier. Now I have 2 other models (ImageTags and Tags). The reaso...
Laravel
9
167
RamjithAp RamjithAp
4

Will PHP run the queries within a condition if it is not true?

Just a concern I always have when writing codes within if statement. Say for example if I have a DB query within if statement will it always run even if the state not true....
Snapey replied
Solved
artisticre artisticre
1

Vue script not working

I have this code when on my individual page, does not work. But if I put it in app.js, it works but there is an error because it cant find $user. How do I get it to work...
maclervil maclervil
1

stop schedule task laravel homestead

How can I stop schedule task on laravel homestead ?...
Prachee Prachee
4

Error while creating custom multi-auth

Fatal error: Uncaught ReflectionException: Class App\Http\Kernel does not exist in C:\xampp\htdocs\CRM\crm-system\vendor\laravel\framework\src\Illuminate\Container\Containe...
Gabotronix Gabotronix
1

Using Stripe CLI in windows?

Hi everybody, I want to test stripe webhooks in my local windows dev machine, stripe docs mention stripe CLI as the best /easier way to test webhooks endpoints and sending...
Mick79 Mick79
43

Any “famous” sites built with Laravel?

Are there any “famous” websites built in laravel that someone not in the Laravel world might know? Like any major retailers? Any major platforms or organisations...
Laravel
43
8504
adhik13th adhik13th
1

How to show data in relate table laravel

I have 3 table called category_order , order , order_detail . now i want to showing total_order in another table but its related table ,you can see this table like this :...
Create a New Discussion Button