Support the ongoing development of Laravel.io →

4,606 Threads

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

Saving positions in database

Hi, I want to save positions in my database, like such: { x: 254, y: 232 } Would I just create two c...

0 Likes
2 Replies

Create global function

So I am creating a billing area, and wish to create a table in the database for logging specific act...

0 Likes
1 Replies

Delete element by ID from DataBase

I try to delete a line with specified ID from database and i get an error: MethodNotAllowedHttpExcep...

0 Likes
5 Replies
Solved

Pagination - Start at a specific page

QUESTION I would like to be able to start the pagination on a specific page. CONTROLLER public funct...

0 Likes
12 Replies
Solved

SQL to LARAVEL QUERY or LARAVEL 'RAW' QUERY

Hello i need a query to transform to laravel query or laravel raw query better.....its complex and i...

0 Likes
1 Replies
Solved

Laravel hasmany filter

I want to filter my logs in hasMany. I have table User, table Logs, and table LogType User has many...

0 Likes
1 Replies

CRUD retrieving data

How can I retrieve the data of specific id without using the id as url? Thank you in advance! I mean...

0 Likes
1 Replies

Can I convert all date formats when getting model data?

I'm wondering if there is a built in way to convert all date formats for display. For example, right...

0 Likes
2 Replies

Pagination - Start on specific page.

I have paginated a result from a DB in my controller, but I would like to start the view on say the...

0 Likes
0 Replies

Onchange load filter marker from database

<script language="javascript" type="text/javascript"> var pubvar1 =...

0 Likes
0 Replies

Lumen: Problem with migrations in unit tests (Class config does not exist)

Hello there! I'm trying to setup unit tests for my Lumen application. Sadly, that only works well fo...

0 Likes
10 Replies

HELP! Selecting specific data to a specific user.

How can I make that in a certain data the only one who can view is the user of this data and the adm...

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.