php - What causes the error 'Not Found SoftDeletingTrait Class'? -


I just updated from Laravel 4.1 to 4.2.7. I'm trying to delete with soft delete:

 Use SoftDeletingTrait; Protected $ dates = ['deleted_at'];  

But with this 'Not Soft Delighting Class' error has occurred, what is the reason for this error?

Just call it from the 'Brighten' database \ Eloquent \ SoftDeletingTrait; '

 Brighten \ database \ Eloquent \ SoftDeletingTrait; The class provides user lucrative {use soft datingset; Protected $ dates = ['deleted_at']; }  

= & gt; Or & lt; =

Go to config / app.php & amp; Add nickname

For Larval 4

 'SoftDelittingTet ='> 'Lights \ Database \ Supernatural \ Soft DeliveringTat',  

for Laravel 5

 'SoftDelatus' = & gt; 'Illumination \ DatabaseBuzzy \ SoftDeletes :: class'; Use the model or controller file to illuminate \ database \ Eloquent \ SoftDeletes;   

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -