Support the ongoing development of Laravel.io →

Add onDelete constraint to an existing foreign key?

I'm struggling to get my head around migrations at the minute. I have an existing table with a forei...

0 Likes
0 Replies

model id is 0 inside eloquent created event

Inside my function that is triggered by the 'created' model event, my object id is 0. My id column i...

0 Likes
0 Replies

How to drop table contents with artisan tinker?

I have tried in tinker cli: Schema::drop('pages') but it just drops the table 'pages', how can i dr...

0 Likes
2 Replies
Solved

A wrong query containing 3 models

Hi all, I have 3 tables: books, authors, and publishers. Books-authors and authors-publishers have o...

0 Likes
7 Replies
posted 9 years ago

Is this right way to deal with Laravel?

I have gained fundamental knowledge concerning Laravel and then I have created simple app called Wor...

0 Likes
4 Replies

extra slash: testphp/? ==> testphp?

A third party software will visit my laravel project with a link. But this link has a extra slash. I...

0 Likes
3 Replies
Solved

Laravel relationship

I need help writing a query in eloquent from three tables, where fields table, field_value and users...

0 Likes
0 Replies

Redirect adds hash of previous url

Hi, just messing with some facebook auth and noticed that on the request before i Redirect::to( '/'...

0 Likes
4 Replies

4.1 to 4.2 update cant return a simple hasmany object from db gives error!

I am simply just doing this $me = \Auth::user(); return $me->program()->get(); GIVES me; Inva...

0 Likes
1 Replies
posted 9 years ago

Migrations and logical view

Hi, into a migrations file, is it possible to define a logical view creation? or just only normal ta...

0 Likes
0 Replies

I have a lot of form fields on my html page, so how can i quickly map each form field name to its corresponding table column, and insert it that way?

I have a lot of form fields on my html page, so how can i quickly map each form field name to its co...

0 Likes
2 Replies

Issue when upgrading to laravel 4.2

Hi, after upgrading to 4.2 artisan gives this error "Argument 1 passed to Illuminate\Mail\Maile...

0 Likes
1 Replies
Solved

Conditionally changing SMTP Mail settings (host, username, password).

Needing to redeclare the configuration settings when sending just one particular mail in the app. Wo...

0 Likes
3 Replies
Solved

Request::segment from another uri

I'm creating an API in which routes are already made like: Route::post('/keyword/{keyword}/{page?}',...

0 Likes
0 Replies

Acces controller methods from View

Is it possible to acces controller methods from View ?

0 Likes
3 Replies
posted 9 years ago

How do you handle dynamics route?

Hi, As I said in another post I'm trying to do my own CMS. I have several articles in my db, each ar...

0 Likes
2 Replies
posted 9 years ago

Unexcepted behavior : File::exists

Hi everyone, I'm currently working on a theme engine for a project of mine and while checking if the...

0 Likes
0 Replies

How to load models?

I have a model like this: namespace Models; use Eloquent; class Sites extends Eloquent { public...

0 Likes
2 Replies
Solved

Password reset based on mobile number instead of email

Newbie alert! :-) I am sitting with a unique problem where multiple users for my application may be...

0 Likes
0 Replies
posted 9 years ago

Missing 0-index for selectMonth() and selectYear() form helpers

Hi Guys, Just a little heads for those who may have experienced this issue: I usually add a default...

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.