mmanieri

Experience

29,590

0 Best Reply Awards

  • Member Since 11 Months Ago
  • 294 Lessons Completed
  • 1 Favorite

16th May, 2017

mmanieri left a reply on Prefilter A Model Table With Current User • 4 months ago

If the model is going to be used in contexts where no user is logged ("system" activities i.e. queued jobs, route model bindings for non auth'd routes) you might have unexpected results.

Might be useful to conditionally apply the scope when an auth'd user instance is actually available.

14th May, 2017

mmanieri left a reply on Where Are You All From? • 4 months ago

Perugia, Italy

4th May, 2017

mmanieri left a reply on Valet Not Using Php7. I Get Php7 When I Check My Version. • 4 months ago

Well.. that should be the result of something you have done.. What's you OS and webserver?

mmanieri left a reply on Protecting Google Maps JavaScript API Key • 4 months ago

That apy key is meant to be used in the client (browser) and therefore it must be known by the client itself.

So it's the JavaScript on the user browser doing the calls.

Double check on the Google dev console and gapi docs

An app key & secret for calls originating from a server would not be exposed, but that is a different use scenario

mmanieri left a reply on Valet Not Using Php7. I Get Php7 When I Check My Version. • 4 months ago

The webserver might be using a different PHP install other than the one you access via CLI checking -v?

Try to put phpinfo() on a test route and check it..

mmanieri left a reply on NPM Issues With Laravel 5.4.21 • 4 months ago

I'm on W10 and had to forget running mix inside the virtualbox homestead Ubuntu.

Tried many things without luck (--no-bin-links, sudo, moving the node_modules dir outside of the shared folder into the VM disk...)...

I then just installed node on Windows and mix (npm in general) now runs flawlessly from the W10 prompt...

11th April, 2017

mmanieri left a reply on Laravel Echo Get Presence Channel's Connected Users WITHOUT Joining Channel • 5 months ago

Echo server, but the API are for the server, not the clients.

My specific case is: the app is open to operators, customers' and suppliers' users.

While the operators must see anybody on line, customers must only see the operators and that company's users online. Suppliers as well must only see operators and their own colleagues from the same supplier.

Currently I'm just filtering out via JavaScript a single general presence channels, but the browser actually receives all the joins and leave.

I tried to design a multiple presence channels system but since I don't know which companies or suppliers could be on line at a given moment I should have the operators' sessions subscribed to all the (potentially empty) companies' and suppliers' presence channels...

5th April, 2017

mmanieri left a reply on Laravel Echo Get Presence Channel's Connected Users WITHOUT Joining Channel • 5 months ago

Sure but to have the data accessible from the client would need a few additional "not very laravelish" steps.

Same for pusher (webhooks)

mmanieri left a reply on Laravel Echo Get Presence Channel's Connected Users WITHOUT Joining Channel • 5 months ago

This would also interests me. Anyone has any idea?

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.