Domain Driven Design in Laravel

JW's videos and series are focused and often goal driven and he often tells us that there's really no best way and to avoid patterns until it's cle...
01

Convert array to Eloquent model

I try to implement search function with this package https://github.com/To...
03

How can I grab the thumbnail of an external url, much like reddit does?

Say I was to build a reddit-like app. When the user submits a link, what's the best way to grab that page's default image/thumbnail? A similar feat...
15

Scheduler issue

I have a scheduler set up to run a command, which sends out an email with a link to a random project on my website. The URL is not hard code...
02

in_array() expects parameter 2 to be array

i make like system in my site in Like model public static function isLiked() { if (Auth::check()) {...
03

Sharing Live GOPRO Video

Hi All. Let's say 2 members are connected on my site. The first one have a GOPRO, is it possible to display the live video of the first user...
06

User-defined order of rows

Hi there, I'm a PHP developer, but I'm new to Laravel. I'm using Laravel 5.0 to build a website for an architecture office, and in this proj...
09

Fetching all users assigned to a particular role

Model: Role <?php namespace App; use App\Permission; use Illuminate\Database\Eloquent\Model; class Role extends Model { p...
05

Pagination from merge()

Hello, I've merges 2 Collections: use Illuminate\Pagination\LengthAwarePaginator as Paginator; ... $towni18n = TownI18n::wh...
01

Need help building Eloquent relationships to avoid using DB query builder

I am new to Laravel and I'm trying to set up Eloquent relationships, but not succeeding. So instead I turned to the DB query builder and it's causi...
02

Double date validation in laravel 5

I have a StartDate field and a EndDate field. Both may start today or in the future. It is possible to have them both start on the same day, includ...
00

Assign user a role upon registration

Using the default Authentication controller and solution that comes out of the box, where would be a good place to give the user his role when reg...
07

Vueify single-file component error

With vueify you can make single-file Vue components. Styling, template and JavaScript in one file. // example-component.vue <styl...
00

Json to Model

Hi, is possible deserialize a json to model ?...
03

Check for tables/database migrated

I've added some models into my service providers and it now artisan breaks when the database is not migrated and the tables don't exist as it execu...
01

Cookie free Subdomain for images?

Hi, I would like to use a Cookie free subdomain images.domain.com for loading my static images. This should be much faster that loading all...
04

Variable passed to route - Security.

Morning guys, I am passing a variable to a route, {id}. After the url of route, it will be like this route/path1/p...
03

Custom Validation BadMethodCallException in Validator

Hi all, I've been looking pmall and bashy comments on Custom Validations and the suggestions made by all of what is the best way to impleme...
02

How can I access eager loaded data?

I have a small box on my page that should show data from my Tvplanner Model. In my Model I eager load all needed data like images and catego...
11

Question: SPA structure. Starting with Angular with Laravel

Hi guys. I'm making single page app on Laravel using angularJS. When I try to access rest api, it returns CSRF mistmatching error. I put all of fro...
02