Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Soniya Megala
    @soniyamegalabde

    Website is a vital communication tool for any organization and we are happy to share that our revamped website with enhanced user experience and communication is live now!

    www.optisolbusiness.com

    We have two major changes in terms of communication - one is around our internal culture where we want to emphasize a sense of empathy and gratitude in our services and the second one is to the external world - we are reiterating our capabilities for digitization by leveraging latest technology trends and platforms. To practice what we preach, we are really grateful to our marketing and technical team for their support and dedication to make this happen. Thank you team!

    We are grateful to our clients, vendors, employees and rest of the stakeholders for getting us where we are and looking for many more support in the days to come.

    Mark Kevin Besinga
    @besingamkb
    is there someone here who setup a laravel project under docker container? how did you run your queues? just asking thanks
    axe1987
    @axe1987
    don’t you just need to run the laravel artisan schedueler:run
    If you mean the cron jobs.
    But I think there is a command for the queues as well i think.
    Robert Obermeier
    @Obbi89
    What is this
    Are you asking about feedback?
    How is that related to laravel
    Stf Kolev
    @stfkolev

    is there someone here who setup a laravel project under docker container? how did you run your queues? just asking thanks

    You can do yourself a bash script to run scheduler on dependent role

    soulaimanassikiou
    @soulaimanassikiou
    Hello again! Does anyone know how can I consume a Laravel API from a Laravel Client
    I need to be able to Authenticate to the Client using the API
    I’m doing it with Api Token Authentication but I am having doubts on how to maintain the user session in the client side.
    Can anyone help?
    Josh Reeter
    @jreeter
    @soulaimanassikiou I'm not totally sure I understand, but generally, when the client authenticates with the api it returns some token that identifies the user. This token would be stored in local storage on the client and then passed a long with subsequent requests to authorize the user if needed.
    Ben Johnson
    @cbj4074
    @soulaimanassikiou Have you tried Laravel Passport?
    Josh Reeter
    @jreeter
    @cbj4074 In your music store repo, do you have any integration tests?
    Ben Johnson
    @cbj4074
    @soulaimanassikiou You can see a simple implementation example at https://github.com/indiehd/web-api/pull/145/files
    Josh Reeter
    @jreeter
    @cbj4074 found them under features in test, cool!
    Ben Johnson
    @cbj4074
    Ahh, very good. :wink:
    HenkPoley
    @HenkPoley
    Does Laravel's Cache::get() use memoization? Meaning: if you request the same cache string in different places, will it load it twice, or does it keep in memory somewhere ?
    soulaimanassikiou
    @soulaimanassikiou
    @jreeter Yes! how is this token stuff getting done? I mean, I’ve manupulated the database with the ‘api_token’ column but how can I keep the session in the Client side with that?

    @soulaimanassikiou Have you tried Laravel Passport?

    I’ve tried but, can’t find any example of the implementation i want to do. People in tutorials use Postman instead of another Laravel project as a client, and that is what i need help on, setting up the laravel client project

    murat aka
    @murat-aka
    @jreeter you can get username and username and password base65 encrypted .(you can add some http headers too like browser agent to making it harder) then you need an algo to map that key to a token. You send that token back to the client side and need to save it into webstorage. Don't save it to session. It might get hijacked. Well if you are just playing around you can for now. And for every api call. You need to send that token and your mapping should be implemented such a way. That token should only have access to the resources for that user
    Ben Johnson
    @cbj4074
    @murat-aka I think you meant that for @soulaimanassikiou :wink:
    @soulaimanassikiou With regard to using Laravel as the client, it's probably sensible to use https://laravel.com/docs/5.8/passport#client-credentials-grant-tokens
    (that would be for any request that is not user-specific)
    For user-specific requests (i.e., the action requires user-level authentication), you would basically do what's described in https://laravel.com/docs/5.8/passport#consuming-your-api-with-javascript
    (even though that section describes consuming your API with JS, the principles are exactly the same if you're consuming it with any other client, such as HTTP via PHP)
    Ben Johnson
    @cbj4074
    That's why all of the demos you're seeing use Postman. All you need to do is pass the appropriate token with every request from your "client Laravel app", which you can simulate simply and easily via Postman.
    HenkPoley
    @HenkPoley
    @murat-aka Base64 is not encryption. Maybe (mild) obfuscation.
    Afrasiyab Haider
    @afrasiyabhaider
    How can I use ANgular7 in Laravel 5.8?
    UncertaintyP
    @UncertaintyP
    Confused looking
    murat aka
    @murat-aka
    @cbj4074 yes, its a long name lol. Now reading back what I wrote earlier. I think I shouldn't try to type first thing in the mornings. Anyway, combination of things, New to gitter on Android phone. Typing on the move. Too early in the morning. Still trying to figure out how I got base64 down as base65. Coders dream, cup of coffee anyone ? I am having like 4 cups a day
    murat aka
    @murat-aka
    I have a question about OOP in PHP. If we have a subclass that it extends a superclass. When we initiate the subclass which constructor would be called. I was working with a bit of code that only had a function which overloaded a constant and extended the base class. So I am wondering if we call that class would the constructor of the parent class be called and would it use the constant in the subclass. Is this called polymorphism?
    @HenkPoley I know exactly what you mean but it would be awkward to say Base64 obsfucate , when the normal saying is Base64 encrpt.
    HenkPoley
    @HenkPoley
    Well, if "normal" is wrong, then don't say that.
    HenkPoley
    @HenkPoley
    If you keep thinking and speaking of Base64 as encryption, somebody will whip your ass in the future, or someone you spoke to. Please be considerate.
    R. Gurung
    @gurrrung
    What's the best way to make a chat app without using Pusher ?
    To be integrated to a already built Laravel app.
    murat aka
    @murat-aka
    @HenkPoley. Nice articles. Its sad that Kubernates is saving passwords in base64 encoded. Yes, right way is to say encoded. Hmm now thinking again. The passwords sent to the server from the client side, are they encrypted by https. We save hash of the password in the database and its oneway can't work it back to the plain text password. But wouldn't it be better to do the hashing at the client side. Because that would make the guessing of the plain text password harder. I ve seen one example of that. But most other codes I have seen does the hashing at the server side.
    HenkPoley
    @HenkPoley
    @murat-aka 👍
    Yes, it's quite insane that we don't really have a default client side password hashing. Currently you are just sending your password for every server to receive in plain-text, and you just have to trust you didn't accidentally send it some malicious party.
    Robert Obermeier
    @Obbi89
    Well hashing it on client side makes zero difference there.
    If a malicious party gets the hashed password, you have the same problems.
    I don't think that you guys actually meant simply hashing the password on client side.
    Josh Reeter
    @jreeter
    @murat-aka overloading or overriding the constant?
    murat aka
    @murat-aka
    @Obbi89 Yes, I ve seen client side pure JavaScript hashing of password in md5 which is not ideal but that was like 5 years back.
    murat aka
    @murat-aka
    @jreeter overloaded function within a subclass that overrides a constant. Yes, you are right overrides the constant