File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
src/Illuminate/Database/Eloquent/Concerns Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -63,19 +63,6 @@ public function mergeFillable(array $fillable)
6363 return $ this ;
6464 }
6565
66- /**
67- * Merge new guarded attributes with existing guarded attributes on the model.
68- *
69- * @param array $guarded
70- * @return $this
71- */
72- public function mergeGuarded (array $ guarded )
73- {
74- $ this ->guarded = array_merge ($ this ->guarded , $ guarded );
75-
76- return $ this ;
77- }
78-
7966 /**
8067 * Get the guarded attributes for the model.
8168 *
@@ -99,6 +86,19 @@ public function guard(array $guarded)
9986 return $ this ;
10087 }
10188
89+ /**
90+ * Merge new guarded attributes with existing guarded attributes on the model.
91+ *
92+ * @param array $guarded
93+ * @return $this
94+ */
95+ public function mergeGuarded (array $ guarded )
96+ {
97+ $ this ->guarded = array_merge ($ this ->guarded , $ guarded );
98+
99+ return $ this ;
100+ }
101+
102102 /**
103103 * Disable all mass assignable restrictions.
104104 *
You can’t perform that action at this time.
0 commit comments