Support the ongoing development of Laravel.io →

4,599 Threads

Issue with adding soft deletes in a later migration

Hello, the issue I'm having is that I created a user table as my first migration, then added a migra...

0 Likes
1 Replies
Solved

Insert or update refactoring

I have a long list of fields to insert. Then I have that same list again under the update section Th...

0 Likes
0 Replies

can't view PDF file from the computer.

How can i view the data here please help thanks. public function showpdf($fsr_num)...

0 Likes
0 Replies

Using DB outside Laravel

I was using Eloquent outside laravel without any problem, until I came to a point that I wanted to d...

0 Likes
2 Replies
Solved

Response Format

Can someone give me a good json response structure for APIs? E.g { "http_code": 200, "...

0 Likes
0 Replies

Problem with php7 and PDO pluging

Already i installed php7 and all the plugings for installer laravel from php but when go to a new pr...

0 Likes
0 Replies
posted 8 years ago

How to write Laravel Query Builder from Mysql subquery Union?

I have a mysql query, that I need to make it work in a Laravel Query Builder. The problem I have is...

0 Likes
0 Replies

Model validation using related models

Consider the following models. class Camp extends Model { protected $fillable = ['name', 'descri...

0 Likes
1 Replies

Laravel Database Testing PHPUnit

Hey everyone. Is there a way to "seed" a test database using some obscure function in Lar...

0 Likes
0 Replies

Eloquent ignores a from field when building quiery

Hi, I have a problem with Eloquent ignoring a form field - not adding the selected value to the data...

0 Likes
0 Replies
posted 8 years ago

Passing parameters through routing wildcards fails to get an instance of the object

Hello, I am having some trouble getting the wildcard in my routes to work properly. What I am trying...

0 Likes
0 Replies

Laravel Cashier (5.1) & Stripe - Correct thought on 1:Many Subscriptions?

Hi, Building a system which a user can have many adverts running (somewhat similar to eBay I guess)...

0 Likes
0 Replies

Company has many Company Addresses

I have 3 tables: companies => id, name cities => id, name company_addresses => id, company_...

0 Likes
0 Replies

Three-way pivot table with Eloquent

Hi everyone, Intro I' m building a web application where users can be in zero, one or more teams. Ev...

0 Likes
6 Replies
Solved

How should I store this values into my pivot table?

Hello, I'm kinda new with laravel and I can't solve this problem by myself. I've tried a lot of thin...

0 Likes
1 Replies
Solved

How to get a list of posts and check if the user already "Liked" them?

I'm having fun with Laravel framework trying to build a little "blog" site that works the...

0 Likes
7 Replies

Remove expired data from database

Hi, Is there any interface for removing expired data from database? For example I have tokens for ve...

0 Likes
0 Replies

sugerCRM in php Laravel

I want to develop a website in Laravel 5, its customer relationship management (CRM) based, I don't...

0 Likes
1 Replies

time() instead of timestamp

Hello, In database migration we use ....$table->timestamps(); to make created_at and updated_at f...

0 Likes
1 Replies

Code in model - need ideas

Hi guys, I need to run something like this in the mode. What I need to do is check if the date on th...

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.