Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Guilherme Saade
    @SaadeMotion
    @jadjoubran Hi! Assuming that my project is finished, which server should i use? My app maybe will handle a massive scale (like million peoples in future), i need a nodejs server? or a common linux server does the job? i meant... php server is just drag n' drop, nodejs needs some else? like expressjs and other things... Just need to know if i drop this files in a linux server, my app will work properly .
    Jad Joubran
    @jadjoubran
    @SaadeMotion you can consider this as a regular Laravel app.. so feel free to host it the way you host Laravel apps
    Mazen Al Wafai
    @mazenello
    hello guys, has anyone tried this with the starter ? https://github.com/the-control-group/voyager
    TarekDeeb
    @TarekDeeb
    Hello. I'm having trouble with compact() Is it compatible with PHP7? I'm trying to return a response from a controller, but I can't catch the response in postman. If I echo the response, on the other hand, I get the response. but
    return response()->success(compact('result'), 200) returns an empty result array
    TarekDeeb
    @TarekDeeb
    nevermind... I wasn't parsing the result :sweat_smile:
    vdjkelly
    @vdjkelly
    hola buenas tardes
    vdjkelly
    @vdjkelly
    TrustHtmlFilter is not using explicit annotation and cannot be invoked in strict mode ? Filters
    harmon1ca
    @harmon1ca
    Hello guys. Who can give an example of auth route in route/app.php?
    TarekDeeb
    @TarekDeeb
    Hello @jadjoubran I'm trying to implement AdminLTE by implementing my own external API into laravel. How can I authenticate users using JWT?
    If I'm not mistaken, $token = JWTAuth::attempt($credentials) assumes that I'm using mysql to fetch users. Is there a way around this?
    Also, if possible, I'd like to have Auth::user() return the authenticated user that was retrieved from the external API
    Jad Joubran
    @jadjoubran
    @TarekDeeb so where do you want to store your users?
    TarekDeeb
    @TarekDeeb
    They are registered on lets say platform X. The AdminLTE app I'm building will access an API that is build on platform X.
    However, I want JWT because I want to secure the logins. I'm not entirely sure that it's needed as platform X already has security implemented.
    I'm actually thinking of building a normal PHP api manually instead of using Laravel. What do you think?
    Jad Joubran
    @jadjoubran
    @TarekDeeb I didn't quite get what's going on
    TarekDeeb
    @TarekDeeb

    Okay, so I'm building an app that calls an external API. My external API gets all the data I need (users, etc..). I need to login to use my app, but I also want to be able to use laravel Auth function as normal. So I want to log in my user, but the user is stored in my external app, which I retrieve using my external API.

    Laravel -> calls external API -> gets user

    IS the only way around this is to store the users locally as well?
    Jad Joubran
    @jadjoubran
    hmm you might be able to use JWT but I'm not 100% sure @TarekDeeb
    pestopancake
    @pestopancake
    Hi, it says in the docs IE10 is not support, why is this? It looks like angular & angular material work (with some caveats)
    Guilherme Saade
    @SaadeMotion
    hello!, In your tutorial, how do you get the posts? Your controller haven't any get() function
    How do i make a query to my DB
    Guilherme Saade
    @SaadeMotion
    and return in Json .... to the component controller
    Guilherme Saade
    @SaadeMotion
    Nevermind... i was searching for the wrong Laravel Docs
    Anyways
    I have some json on my DB (MySql/MariaDB), so, i'm making a request, and my db return 200 with some data. Then i'm using json_encode() on data returned, but it converts determinated field to string, how can i "join" the DB json, and the converted json? like... to json_encode do not encode my DB json to string?
    Guilherme Saade
    @SaadeMotion

    because i'm not using models, just controllers, so the Laravel Casting wont work on Controllers(?).

    I set the route to the controller, inside controller i have a get() function that returns me the result of query.

    Guilherme Saade
    @SaadeMotion
    Nevermind.... My json syntax was incorrect
    Guilherme Saade
    @SaadeMotion
    What about creating a key-like authenticated routes? Like, i have site.com/api/posts.
    Its just for logged users. But if i want to "authenticate" by JWT, like... user passes a key=817294148 in url, or in request header, then api returns DB data.... How can i do that?
    Jad Joubran
    @jadjoubran
    @/all I've been working on recording a course in the past few months, and I'd like to share it with you before sharing it publicly with a 50% discount. It's called "How to become a better developer". Here's the link with the discount code if you're interested https://www.udemy.com/how-to-become-a-better-developer/?couponCode=LARAVELANGULAR10
    I'm not going to post about it again as I don't want to spam you guys but feel free to send me a direct message if you've got any questions
    Cheers!
    pestopancake
    @pestopancake
    Hi, I seem to be having trouble with the dialogService; looks like it is loading the template but not the controller
    Kenjiro
    @sarjonator
    hi
    Mark Kevin Besinga
    @besingamkb
    hi everyone. is this still the gitter to the new laravel-angular.io?
    Jad Joubran
    @jadjoubran
    Hi @besingamkb you could ask here if you want
    We didn't create a new room for that
    Mark Kevin Besinga
    @besingamkb
    @jadjoubran thanks jad. i will :D
    Mark Kevin Besinga
    @besingamkb
    hi @jadjoubran do you think this will be good for new project? I have some basic knowledge on angular 2/4 do you think that is enough for this? because i have upcoming project. a small one and I was thinking if maybe this is good to use or do I need more advance knowledge on angular before I can use this?
    Jad Joubran
    @jadjoubran
    Hi @besingamkb this is not a starter anymore it's simply a package that helps you return consistent response from the API, whether it was an error or success
    make sure to checkout the documentation first
    Vache Ghadimian
    @VickG
    I am new to Angular, but I have a few years of experience in Laravel. I want to built my next application with the SOA where Laravel is a Web Service and all the front-end is in Angular. Are there any recommendations where to get started? I have so far completed the tutorial on the Angular official website
    Vache Ghadimian
    @VickG
    :)
    Jad Joubran
    @jadjoubran
    This message was deleted
    Hi @VickG
    Since you mentioned that you've got Laravel experience but lack the angular experience, I'd take any Angular course that you like, whether on Udemy or from expert instructors
    there are tons of courses on the internet, ranging from 10$ to 90$
    you can even simply follow the official Angular tutorial on https://angular.io
    there isn't any aspect of Laravel & Angular together that's special, i'll simply try working soon on adding new features to this package but for now it's simply a Response Macro that returns errors and success messages in a formatted manner
    Let me know if you've got additional questions!
    Vache Ghadimian
    @VickG
    @jadjoubran just saw this old message, thank you for all the information! much appreciated!
    Alex lowel
    @Alex159753_gitlab
    Nice discussion