Support the ongoing development of Laravel.io →

4,312 Threads

posted 9 years ago

jenssegers/date translate date from database

I'm stuck on localization... I want to translate a record from the database with the github package...

0 Likes
3 Replies

Call a mutator

How to call mutator if I don't have that field in $request->all() input fields? In my model: publ...

0 Likes
2 Replies
Solved

I need help on refferencing query builders in my controller.

Hello every one, I am a newbie in Laravel, I just took a Lesson about Laravel 5 Fundamentals. After...

0 Likes
0 Replies
posted 10 years ago

Best way to check if BelongsToMany attach() was successful?

Is there a good way to check to see if attach() on a BelongsToMany executes successfully, when it ju...

0 Likes
2 Replies

syntax error, unexpected ';', expecting function (T_FUNCTION) But there is no error

Hi, I am trying to use db:seed but every time I run it i get [Symfony\Component\Debug\Exception\Fata...

0 Likes
2 Replies

structure to create statistics

Hello, For a simple questionnaire I would like to create some statistics but I'm not sure if the cur...

0 Likes
0 Replies
posted 9 years ago

doesntHave not working

I have this code and yesterday was working normally: \App\News.php public function readUsers() {...

ashanoulu liked this thread

1 Likes
2 Replies
Solved

saveMany using factories and an arbitrary count

I have written a helper method for some tests that contains the following line of code: $user->or...

0 Likes
0 Replies
posted 9 years ago

Insert null value into the pivot table.

Hello. I want to seed my database with users that have specific roles for every website. To do that...

0 Likes
1 Replies
Solved

Method 'orderBy' not found in class \Illuminate\Database\Eloquent\Relations\BelongsToMany

I have following relations: in TransportOrder Model: public function statuses(){ return $this-&g...

0 Likes
0 Replies

Class Model Not Found

Error: FatalErrorException in RegisterController.php line 22: Class 'App\Paises' not found in Regist...

0 Likes
5 Replies

Eloquent, convert iso8859-1 to utf-8 and viceversa?

So, i have a database that is in iso-8859-1, and the website is supposed to be in utf8. I do not hav...

0 Likes
0 Replies
posted 9 years ago

Is it good way to use Auth::user(); in REST APIs to get the current authorized user details?

I am implementing Server APIs for Mobile App using Laravel 4. Can I use Auth::user() to get the curr...

0 Likes
4 Replies
Solved

Using ::has on a relationship between two models that have the same table

So I have a Vip model: class Vip extends Model { use MemberTypeTrait; use RecordStatusActive...

0 Likes
1 Replies

Which Eloquent structure for my application?

Hi, I started with a new application, but I struggle with setting up my Models and Relations. Let me...

0 Likes
1 Replies

How to run a query in laravel

Hi I'm iqra, I'm a newbie in laravel, I want to run a query like this SELECT vote, slug, COUNT(*) FR...

0 Likes
2 Replies

Check if relationship exists between two models (many to many)

I've got a model called Provider and one called Service. A Service has a one-to-many relationship wi...

0 Likes
1 Replies

How to set whereIn update() param?

In the docs, I see DB::table('users') ->where('id', 1) ->update(array(...

0 Likes
1 Replies
Solved

Call to undefined function App\mycrypt() on Artisan Tinker

Hi there folks, I am having a problem on Laravel, since I am a newbie on Laravel Framework, I am wat...

0 Likes
1 Replies

Seeding creates empty fields into databse, but does not write anything into them.

Seeding creates empty fields into databse, but does not write anything into them. **CategoriesTableS...

0 Likes
1 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.