get All Tag Models with their count in a ManyToMany relationship in laravel 5

have a Many to Many Relationship between Post And Tag Model: //Tag Model class Tag extends Model { public functi...
02

Laravel 5.4 (Eloquent) - how to do sortable with storing order in pivot table?

Hi guys. assume for a second I have 2 models model "schedules" and another model "plans" as well as a pivot_table...
03

Complex relationship that takes (too) long

Hi all, My question is basically: how can I do the following better, as in quicker: I have 3 tables with a manyToMany relationship: u...
03

Routes doesn't work with virtual host in xampp

Hello, I create a virtual host with the following code: <VirtualHost *:8080> DocumentRoot "C:/xampp/htdocs/&qu...
14

Lumen 5.4 - Auth guard driver [api] is not defined.

Hi there, I have setup a standard Lumen installation and all works fine until I activate Authentication (uncommenting 2 parts in app.php) an...
02

App with multiple models, timestamp issue

I have an app with about 12 models, all of which save to my database (MySQL) at UTC, which is what I have my config set to... config/app.php...
04

Using forge-conf to add additional nginx directives

I am finding the need to do some other things in nginx configuration files, and I see /etc/nginx/forge-conf/test.com$ ls after befo...
00

How to cache my css and js files in laravel?

Hello, everytime I reload the page, my app fetches all the css and js files. How can I cache them to prevent this? Thank you....
05

Migration and seeding is slower in local machine than Homestead

Why is it slower to process artisan migrate -seed from local machine than Homestead virtual machine?...
02

The best hosting for laravel 5,4

Hey all I want to ask about the best hosting for laravel 5,4. Thanks . . ....
01

how to detect user location and redirect to url in laravel

I'm looking for easy way to detect user location and redirect to custom url for example: user from USA redirect to website.com/en use...
01

Uncaught ReferenceError: Pusher is not defined

Uncaught ReferenceError: Pusher is not defined at PusherConnector.connect (eval at (app.js:122), :546:31) at PusherConnector.Connector (eval at (...
03

Array Validation for checkboxes / radio buttons

Hi all, Not sure if I missed something in the documentation with 5.2 release but i'm attempting to use the new array validation. I am passi...
05

Translation Strings in Validation

Im using a lot the "new" translation strings feature...
00

elequent with when using event

this is probably me just being stupid but if i run my query like so return $contracts::where('enabled',1) ->select('id', 'name' , 'color'...
03

Caching eloquent models since laravel 5

Hi! Since the remember function is removed from laravel 5 and up, what is the overall idea on how to cache eloquent models? If you build som...
21

Love Vue.js, seriously!

Vue.js is absolutely amazing. Everything is so natural and so simple and do exactly what I want. Want to filter some content grab a bunch of radio...
30

DatabaseTransactions.php trait does not work in Laravel 5.4

I used to use DatabaseTransactions trait in my tests to refresh the migrations every time i run my tests and it was working fine in laravel 5.3 but...
08

Using league's SFTP adapter with Flysystem

I've installed league's SFTP adapter for Flysystem. I need to SFTP to a server to grab a file. Doing a test I can connect successfully, but...
00

Syntax error or access violation

Trying to get some data for a dashboard page I am building. I am not sure why I am getting this error $appData = App::orderBy('id',...
05