Support the ongoing development of →
Input Database Eloquent
Last updated 9 months ago.

What happens when you print it?


If it's still empty, check your html.

Last updated 9 months ago.

Try this.

$work = new Work;
$work->title = Input::get('title');
$work->link = Input::get('link');
$work->type = Input::get('type');
$work->content = Input::get('content');
$work->date_posted = date('Y-m-d H:i:s');
Last updated 9 months ago.

dd(Input::get('link')); gave me the expected result:

string(9) "test-link"

Using your method CleverCookie works... Why o.O?

Did I forget something into my model?

Thanks to us!

Last updated 9 months ago.

It may be as you said, that you can't use 'link' as a key, but I'm not entirely sure.

I never use the create() method, the answer I posted is just the way I create models and I have not had any problems.

This may be an issue that needs reporting, so If anyone else thinks it is or knows why his original code is not working, feel free to enlighten us.

Last updated 9 months ago.

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.