Access Model Relationship data on internal method call.

OK, So I have a model...lets call it a Part. This part has a relationship with images. We have one specific image we want to pull regularly....
03

get unique rows

i have table called machines that has category column. in view im trying to make dropdown select of categories. and since there are many machines...
07

jQuery only showing blank text

I'm currently running into an problem while programming a website. The problem is that it returns exactly this ' ' when t...
04

Passport Authorization works, but now how to apply to API Authentication?

I am building an API in Laravel 5.4 and ideally I'd like each user to have a unique authorization token for API calls. I created a sign-in/s...
01

Use axios / ajax to send file and other data without FormData?

Is it possible to use ajax (I'm using axios + vue) to send a file and also data (arrays, boolean, integers) without being converted to string?...
03

binding checkbox values if present in another array

Hi I have an API that returns some data. The data that is returned, is an array of objects (countries - quite a few of them). Also I'...
02

Select same named columns from joined tables

I have such expression to select from tables users and roles $users= User::join('roles', 'users.id', '=', 'roles.id') ->selec...
03

Wrapping Validation Errors in 'data'

Hi all, I have a validator in my Lumen project, specifically in my auth controller sign up method. It returns errors like this:...
02

ajax calls and get 500 (Internal Server Error)

I want to use ajax in my laravel project .when i call ajax then it gives me the following error message " 500 (Internal Server Error)" ....
11

Subdomains NGINX config

I have 5 apps, on a single domain linked to a DigitalOcean droplet like such: LEMP stack mydomain.com site1.mydomain.com site2.mydom...
03

Inline template not working

Hi, I'm trying to use inline-template with vue.js 2.0. I use it with Laravel 5.4: <users inline-templa...
00

Show correct modal

Hi, I've got a table with rows. When a user clicks on a row I would like to show that data in a modal. The problem that...
01

Location Authentication

Hello laracasts, I am looking to implement a system like Steam's steam guard. Where you login to your account and It pops up with a modal as...
01

Log every request & response

Hi. I m new to this. I want to log all the request & response for the API calls. pls help me. Thank you...
04

Eloquent Collection Where Like Wildcard Not Working

Can you use the % wildcard in an Eloquent Collection where like? This works without using the % wildcard:...
01

Eloquent's morphedByMany method

As far as I can tell, unlike with one-to-many polymorphic relations using morphMany/morphTo, there is no way to retrieve all of a polymorp...
02

Different Authentication for Admin and Customer

I am using laravel 5.2 and I want to make different login authentication for Admin and Customer where customer will be restricted when he tries to...
02

What makes Jeffery Way show his face in videos lately?

Just curious, what makes Jeffery Way show his face in the videos lately? Is it as a form of watermark or experiment?...
09

How get current route in middleware?

Laravel 5 latest (8be2523f12c2d95bad4b11ab5ca7e58d75df94d3) In App\Providers\AppServiceProvider.php:...
10