Support the ongoing development of Laravel.io →

preventing one role from accessing the property of the other

I have an inventory app that has three different roles, namely operator, admin, and super admin. the...

0 Likes
0 Replies
posted 7 years ago

Positioning an @include reference

Hey guys, hope you're well. So a quicky for you guys and im so confused about it! In my home.blade.p...

0 Likes
0 Replies
posted 7 years ago

Upgraded server to Ubuntu 17.10 Laravel project on 5.4.3

AFter upgrading the server, my project using Laravel 5.4.36 only displays the actual text of the ind...

0 Likes
0 Replies
posted 7 years ago

php artisan package:discover

When i have run composer dump-autoload i got this error Method Illuminate\Foundation\ComposerScripts...

0 Likes
0 Replies
posted 10 years ago

One-to-one relation through pivot table

I have component A, users, which connect to component B, addresses. One user has one address, always...

0 Likes
12 Replies
Solved

How to check if a Foreign Key exists

In my migration code I have: if (Schema::hasTable('activity_log')) { Schema::table('activity...

0 Likes
8 Replies
Solved
posted 7 years ago

asset() dosnt work at amazone ec-2

hi i install my laravel app at amazone serer ec-2 after i upload all my file the asset() dosnt work...

0 Likes
1 Replies

Add pin password to built in authentication

I'm writing my first application with Laravel (v 5.5) and it's days I'm trying to figure out how I c...

0 Likes
0 Replies

Laravel Relations One to One and One to Many

Let's say we have three models Class, Students and Studentinfo. Class and students are in One to Man...

0 Likes
0 Replies

Cannot override model factories default

I can't workout why I cannot override the values specified in my ModelFactory.php file, from within...

0 Likes
6 Replies

Extending webpack exlixi

I have this codes in my gulp.js elixir(mix => { // for auth mix.sass('auth/auth.scss');...

0 Likes
1 Replies

Session flash message

Hi there! I have a code that works fine. It displays flash messages. This is what you find in my vie...

0 Likes
5 Replies

Just a small Laravel admin panel builder

Hi, here's a small Laravel admin panel builder I've been working on: http://www.appnoder.com/ If you...

0 Likes
0 Replies
posted 7 years ago

mysql many records Replace into for DB::replace

I have searched for a bit, but didn't find a solution for importing big files, which needs to replac...

0 Likes
0 Replies

About attaching morphable models

Hi everyone, I don't know if there is a better way to attach a morhpable object to its owner. In my...

0 Likes
1 Replies

Homestead, route issue (page not found)

Hi everyone, I'm hoping that someone else can point out what I am doing wrong. I am running a Homest...

0 Likes
2 Replies
Solved

Is it possible to sort results by relation without a join?

Currently I am retrieving product results for a category like this: $products = $category->produc...

0 Likes
0 Replies

Class 'Swift_StreamFilters_StringReplacementFilter'

Hey guys, i have been working on a local machine, once a user registers it fires an event from a con...

0 Likes
0 Replies
posted 9 years ago

Eloquent hasMany with multiple foreign keys and where

Hi! I have two tables, tasks id startTarget endTarget status targets id title I need get all tar...

0 Likes
2 Replies
posted 7 years ago

filter data in hasMany using where and parent field value

Hi, Is it possible to filter the data returned by relationship using values in the parent class Prog...

0 Likes
0 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.