Support the ongoing development of Laravel.io →
posted 11 years ago

how to create class with callback param in method?

I want to call class via callback/closure like // call or register MyClass::make('name', function($c...

0 Likes
0 Replies

Platform Attributes Spotlight

A little overview of attributes package in platform https://vimeo.com/97276329

0 Likes
0 Replies

Eloquent object ogininal values are not the same as the attribues

Hi, I want to display a value from my model, but it always gives me '0' as an integer while the colu...

0 Likes
2 Replies
posted 11 years ago

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 11 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
posted 11 years ago

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 11 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
posted 11 years ago

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 11 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 11 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

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.