eloquent
Here are 738 public repositories matching this topic...
-
Updated
Apr 9, 2021 - PHP
-
Updated
Mar 30, 2021 - PHP
-
Updated
Mar 26, 2021 - PHP
-
Updated
Apr 8, 2021 - PHP
-
Updated
Mar 18, 2021 - PHP
需要绑定的变量对应的tag未生效
-
Updated
Dec 27, 2020 - PHP
-
Updated
Apr 3, 2021 - PHP
I have Post model that has only title and slug both translatable.
Migration:
class CreatePostsTable extends Migration
{
public function up()
{
Schema::create('posts', function (Blueprint $table) {
$table->id();
$table->json('title');
$table->json('slug');
$table->timestamps();
});
}
public fu-
Updated
Apr 18, 2021 - PHP
-
Updated
May 31, 2020 - PHP
I'm sorry if this has been asked before, but I can't seem to find an answer.
I validate my fields with the RuleFactory::make command. For example:
class CategoryRequest extends FormRequest
{
public function rules()
{
return RuleFactory::make([
'%name%' => ['required', 'string', 'max:255'],
'%description%' => ['required', 'string'],
-
Updated
Mar 9, 2021 - PHP
-
Updated
Mar 12, 2020 - PHP
When a schemaless column from db is set to NULL instead of {}, on scout:import it results in that error:
Return value of Spatie\SchemalessAttributes\SchemalessAttributes::getRawSchemalessAttributes() must be of the type array, string returned
-
Updated
Apr 17, 2021 - PHP
-
Updated
Mar 31, 2021 - PHP
-
Updated
Apr 15, 2021 - PHP
-
Updated
Dec 12, 2020 - PHP
Improve this page
Add a description, image, and links to the eloquent topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the eloquent topic, visit your repo's landing page and select "manage topics."

Corcel Version: "jgrossi/corcel": "2.5.*",
Framework Name & Version: "laravel/framework": "5.5.*",
PHP Version: 7.1
Description:
Cant find model... for
// clean and simple all posts from a category
$cat = Category::slug('uncategorized')->posts->first();
$cat->posts->each(function($post) {
echo $post->post_title;
});