Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create a model with attributes #5

Closed
diegofer79 opened this issue Jul 11, 2020 · 2 comments
Closed

Can't create a model with attributes #5

diegofer79 opened this issue Jul 11, 2020 · 2 comments

Comments

@diegofer79
Copy link

Hi, I'm using leaf to an personal proyect, and I discover that if I have a $fillable attribute on a model I can't create one passing that parameter.

Genre::create(['description' => 'Genre test 1']);
//description isn't populate

thansk!

PS: Sorry if my english isn't good

@mychidarko
Copy link
Member

Hello @diegofer79, thanks for sharing this problem. I personally haven't experienced this issue, and so I'll like a little more information about your setup.

What is the exact error thrown or returned when you try to use Model::create

Also are you using leaf alone, or with a framework like leaf MVC or leaf API?

@diegofer79
Copy link
Author

diegofer79 commented Jul 12, 2020 via email

@mychidarko mychidarko transferred this issue from leafsphp/leaf Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants