Support the ongoing development of Laravel.io →

991 Threads

Trying to get property of non-object from eloquent Relationship

I have used a relationship that returns data but when i use it it throws error "Trying to get p...

0 Likes
1 Replies
Solved

Reference/Guide of Methods of Model Class

Guys how do I get complete Reference of Methods of Model Class?? like where(), Get(), first(), etc a...

0 Likes
2 Replies
Solved

Database Error Migrate

after php artisan migrate, theres an error I got below: [Illuminate\Database\QueryException] SQLSTAT...

0 Likes
4 Replies
Solved

Eloquent Groupby with Rollup

How do I use the mysql rollup feature with laravel eloquent? I did try a few but not able to get the...

0 Likes
1 Replies
Solved

Eloquent - relationship pivot table attributes

Hey, I am trying to create simple shopping cart / order module and I've decided to connect orders an...

0 Likes
2 Replies
Solved

Route model with relationship

hi all I'm making a blog and i have a question : for the view post page, i use this route : Route::g...

0 Likes
4 Replies
Solved

Cashier BadMethodCallException Method newSubscription() does not exist, why?

Model <?php namespace App\Entities; use Laravel\Cashier\Billable; use Prettus\Repository\Contr...

0 Likes
5 Replies
Solved

how to insert current login user -> userid using --resource controller? please help my thesis deadline

im using php artisan make:auth any ideas on how to insert the user id of the current login-ed user?...

0 Likes
4 Replies
Solved

"Base table not found" error when extending Model

Hello guys! I got a problem that I'm not managing to solve. I have a model called "Jogo" t...

0 Likes
11 Replies
Solved

Pictures linked to posts

Hello, I'm trying to create a system that will link multiple images with posts, for example, I want...

0 Likes
6 Replies
Solved

chunkById - Method chunkById does not exist.

I am taking data from a junction table and want to chunk by id but the method is not recognized. Her...

0 Likes
1 Replies
Solved
posted 9 years ago

Homestead - SQLSTATE[HY000] [2002] Connection refused

Hi, There's my local cnx data. 'driver' => 'mysql', 'host' => '127.0.0.1', 'database'...

0 Likes
9 Replies
Solved

Creating "Achievements" in Laravel

I have been looking at the possibilities of gamification on my webapp, which has been fun to think a...

0 Likes
7 Replies
Solved
posted 9 years ago

Laravel5 Seeder, ReflectionException, "class ?????TableSeeder does not exist" in Illuminate/Container/Container.php:776

Not sure if you can post questions about Laravel 5 yet? Running "php artisan db:seed" in...

0 Likes
21 Replies
Solved

General error that field doesn't have a default value

I'm running into an error that I can't solve. The mentions online aren't giving me a viable solution...

0 Likes
4 Replies
Solved

Form Model Binding and Radio Buttons

I am building a form to edit a row with Form Model Binding, the problem is all radio buttons are unc...

0 Likes
7 Replies
Solved

Call to undefined method Illuminate\Database\Query\Builder::lists()

I've just started to study Laravel using this course Laravel 5 Fundamentals but in lesson 22 I've a...

0 Likes
4 Replies
Solved
posted 7 years ago

DB::getQueryLog() wrong execution time

Laravel 4.2 I have this code: DB::flushQueryLog(); $album_list = Album::with(['first_photo'])->wh...

0 Likes
1 Replies
Solved
posted 7 years ago

multiple databes data show or table show in a pages

My controller : { $data = array( 'employeedetails' => EmployInfo::all(), 'designatio...

0 Likes
1 Replies
Solved

Saving checkbox value in to a database

My form: {{ Form::checkbox('portfolio', 0, false) }} By default checkbox is unchecked. In controlle...

0 Likes
2 Replies
Solved

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.

© 2024 Laravel.io - All rights reserved.