Get array value

hello, i need help, how to get display_name my syntax @foreach ($admins as $key => $admin) ucfirst($admin->roles)-&g...
06

Route Model Binding - nested routes via resource() function doable?

Lets say I have Posts, Comments (belongsTo post); Rating belongsTo Comment) Posts hasMany Comments; Comments hasMany Ratings....
03

Calc field in Laravel

Hello to all, I’m new in Laravel and i want to know how can i add a calculate field in the Eloquent query. Is there a way ? For exa...
00

Cloud based database

Is it good practice to use a cloud based database instead of a local database on the remote server? How do you guys approach such an issue? Thanks....
05

Create Image using JS: canvas.toDataURL("image/png");

I am trying to pass the value of canvas.toDataURL("image/png"); to the database as an image....
06

Private Channel with Laravel/Pusher works, but Public doesn't :(

Hello People, I've used this helpful guide to set up a si...
03

Laravel Auth: These credentials do not match our records

I have recently run into some problems with Authentication/Login. User registration works fine, but when I try to login using the same crede...
00

Passing object to link edit from vue to Laravel edit Method

Hello, My list view is using a vuejs component wich on onload event is getting json datas to display via ajax in a table but in order to pass my ob...
04

Is it safe to use "encryptString" for password reset tokens?

Hey all - I'm building some custom forgot password functionality. Is it safe to use "encryptString" for password reset tokens? Does Larav...
03

Has Many Through

Hello, I need help. I'm using the "has-many-through" relationship on laravel 5.1, and works fine. But I need customize my return method....
04

Want to use Laravel for REST API but Node.js for server side rendering

Hi there, I love Laravel. It has been so great. I don't find such a framework in Node.js world. Most people over there are rolling their own backen...
00

Is lazy loading going to make some gigantic models?

I have an example: Post with $comments = return $this->hasMany('App\Comment'); Comment with a function of...
06

Eloquent select all entries created at the full time

Hi! I'm actually inserting each 15minutes some datas in my database. Then, I build a graph to show the evolution of the datas. But each entr...
06

Laravel Cashier and handling card errors with active subscriptions

Hi, It's pretty straight forward to handle errors when user enters card details for the first time. However there is also a case when after...
03

301 moved permanently

why i get this message when i deal with this api https://apidocs.to...
03

Laravel Passport and AJAX

Hey guys, Im currently building a Vue app, where most of my data fetching and updating is through Ajax. Authentication is through Ajax as well, and...
00

Lot of data Problem(Production!)

Hi i have a problem when i try to load all my user with no pagination my server says that it cant handle the request please help is in production....
10

What is the right approach in handling various combination of relationship.

Fees can be charged in one out of eight ways in my case as in below relationships 1. group->location->service->provider->...
03

am i on good way or i should refactor ?

my profile controller public function showProfile(Request $request, $id){ $profile = User::where('hidden_id', $id)->first...
03

Validation if blocks.

Hi, I have notice that recently I have started writing a lot of code like this: private function validationChecks() { if...
08