What worked for me was
flock -n /tmp/latavel_queues.lockfile /usr/bin/php /path/to/laravel/artisan queue:listen
diegoponciano left a reply on Getting An Error On The Command: Php Artisan Migrate
Hi there, Did someone find a workaround?
Did you find solution for this?
diegoponciano started a new conversation Is There An Equivalent Of Laracasts.com To Learn Java?
I am very interested in moving forward with my career and adding Java as one of my set skills. I love the format Laracasts offers for its teaching videos, is there something similar for Java?
There should be a way to ask the API if the provided password matches the user's password?? (if the user logs in with their password next time)
Since there is no full answer to this yet:
The package used is called PHP Companion, you can check documentation here: [https://github.com/erichard/SublimePHPCompanion]
As of today the command is named
This is the video from Jeffrey Way: [https://laracasts.com/series/sublime-text-mastery/episodes/7]
In the example Jeffrey is using f7 as a key bindding.
Well for me it let'd me know for what I am paying for and how many times I use my subscription, would also let me know if I can share the video in my social media without any issues for my developer friends, or at least I would be able to warn its a paid video that is worth it, for me it would be a nice feature.
You can still discuss in the forum with free subscription so that's not really for what you are paying for.
I can't really see any label anywhere in the videos, either I am blind or the label is just not there, can you point where to find it?
Thanks for your opinion.
diegoponciano started a new conversation Ability To See Which Lessons Are Paid Lessons When You Are A Paid Subscriber
This would be great to have, it would also create a "sense-of-value" for paid subscribers.
diegoponciano started a new conversation Best Way To Retrieve A Particular Type From Polymorphed Relation
I have locations with locatable_id and locatable_type,
I want to say Location::where('locatable_type', 'App\Whatever') but I think there should be an eloquent way of doing that?
So I found the answer to this problem,
There is actually a morphOne method which is not documented in the Laravel docs. So you can actually use the exact same structure from the morphMany implementation and you just change it to morphOne, that should do the trick.
HOWEVER, it seems the method exists merely for 'eloquence' because it does not check if the model is only having one of its parents and I get why (by getting as parent different types of models you never know which ids you'll get, therefore they are not unique).
Hope is useful for someone in the future.
So I have a Conversation model which I want to have many Chat(s) so then I can assign a Conversation to whatever model I want, but I just want to allow it once, so let's say a Post has a Conversation, post should only have one conversation, but I want to be able to have a Whatever model owning a Conversation model along with its chats, I want that relationship to be Polymorphic.
I created already a Polymorphic relationship but it allows me to have multiple conversations per model. Do you think I should just get rid of the Conversation model and use only a Chat's polymorphic relationship?
I wanted to use a Conversation parent model so I can say:
And also save a conversation->status, conversation->type, and timestamps, or maybe even conversation->banned or something and ban all chats related to that conversation in future development, or just disable from an admin panel easily. What are your thoughts about this? I am open to suggestions :)