Support the ongoing development of Laravel.io →

4,599 Threads

Using the Eloquent accessors and mutators to automatically convert SQL enum into human-readable form?

I'd like to know if the accessors and mutators could be (ab)used for this purpose, from what I gathe...

0 Likes
1 Replies

php artisan migrate showing no success message on terminal and no migration occurs in DB on laravel 5.2

I'm trying to migrate a cloned project. I've set the .env file with credentials matching my DB and i...

0 Likes
1 Replies

SQL Server weirdness - unable to connect using DB class, but can using explicit "new PDO" declaration

I've got a controller action which is attempting to call a stored procedure on a MS SQL Server 2008...

0 Likes
0 Replies

Table grouping in blade template

i have database that shows like this and this is the blade template to show the table :...

0 Likes
1 Replies

"Double" Relationship Count

Hello everyone, Basically what I'm trying to do is "count" the number of records that two...

0 Likes
3 Replies

Error in exception handler:

need help on this this error: The stream or file "/volume1/web/dar/app/storage/logs/laravel.log...

0 Likes
0 Replies
posted 10 years ago

Schema ->default() for date -> NOW() ?

Hello, Big fan, changing all websites and apps to use laravel. First question, no really good answer...

0 Likes
4 Replies

Chunk missing half the results

Hi, I'm using Eloquent to retrieve results with a chunk. With large collections, the closure seems t...

0 Likes
7 Replies

Inserted related records and returning their ID

I'm inserting related records but need to return the ID of one of the inserted ones. How do I do thi...

0 Likes
3 Replies

Cannot get all objects/models from Many to Many pivot table

Hello, I have a very confusing problem and yesterday spent whole day trying to solve it, but without...

0 Likes
0 Replies

Model Updated event sometimes not firing

Hi, I've been stuck with this problem for days now: I have a service provider that monitors for the...

0 Likes
0 Replies

Sort to nested

Hello Community, I've got the following problem. From my Database u get the following Array of Categ...

0 Likes
0 Replies

How to get the diffrent provider using morphTo() relationship

Hi, I want to get the different provider (venue,vendor) list based on 'map_type_id'. In my package t...

0 Likes
0 Replies

What can be wrong with my resource controller?

Hi, i'm currently working on a simple project that lets doctors register pacients and their relative...

0 Likes
0 Replies

Laravel schema unit test doesn't work.

I try to mock this: \Schema::drop('tableName') in my unit test like this: \Schema::shouldReceive('dr...

0 Likes
2 Replies
Solved

If Else issue in Laravel View

I am a Laravel beginner; Please help me to solve this error. I want to print the status as "Vie...

0 Likes
2 Replies
Solved

Query a polymorphic relationship using related model

Assuming I have the following models: FeedItem (Polymorphic) Facebook (has many tags) Twitter (has...

0 Likes
0 Replies

changing the name of users table in laravel 5.2

please i want to change the name of users table !!

0 Likes
0 Replies

Bootstrap Date Paginator - time sheet

Hello! I'm new in Laravel. I want to make simple time sheet using Bootstrap Date Paginator or someth...

0 Likes
0 Replies

[Symfony\Component\Debug\Exception\FatalErrorException] parse error When i do migrate:reset or rollback

php artisan migrate works fine but when I do reset or rollback the error hits my terminal. I did all...

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.

© 2024 Laravel.io - All rights reserved.