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
Actions on a single instance #6
Comments
With And what about scopes? It works with scopes already. |
@hootlex I mean Would just be a nice feature, nothing more :) |
I like this feature too. Before I published this package I tried to implement these methods but there were collisions with As you can see I chose the second option since I didnt like to have both If you believe that it will be useful to call |
how to delete the rejected post ? |
You can delete it directly using |
it give me error using $post->delete () |
Which laravel version do you use? |
i am using 5.2 |
Does the scope work for you? |
yes its work but rejected and unapproved post do not delete give me error . |
I tested it myself and I am able to delete rejected/pending posts running $post = Post::withRejected()->where('id', $id)->first();
$post->delete(); Please update the package to the latest version. |
Thank you (y) |
Did the update fix your issue? |
@hootlex you are great man!!! i love your book. I hope you can publish more book. Then I can continue to learn new thing with you |
@yoongkang0122 thanks your kind words, I am glad you like it. |
@sebastiaanluca methods on single instace have been added on v1.0.6. |
Perhaps an idea to allow
$user->approve()
,$user->reject
,$user->postpone()
, et cetera? :)Oh, and scopes! That way it can be combined with other query limitations like wheres and whatnot.
The text was updated successfully, but these errors were encountered: