How do I get the days left using carbon?

$subscription_end = 2016-08-19 00:56:48; $now = 2016-05-19 01:35:59; $left = $subscription_end - $now; expected output: 120days left....
06

Why am I always getting the last value in my ternary condition?

Why am I always getting the last value in my ternary condition? @$user->first()->member_type == 'sperm_donor' ? 'Sperm Donor'...
02

Socialite question?

I'm developing a website that has Sign up with facebook but does not have login with facebook. and the login field was email and passw...
02

How do I create a form in controller and submit it

I'm having problem redirecting to the post method so I was wondering if I could submit a form from a controller. is it possible? I...
06

Laravel hasManyThrough whereBetween dates

I have models for which I get count of views through users. I have set up those models like this: public function views() {...
00

How to parse a Laravel log

What would be the best way to parse out the date, environment, level and message from each log entry in one of Laravel's log files? I know t...
04

Send payload to queue NOT a job.

I want to send a message to a given queue. by default I have it set to Redis, what I would like is to send it to another queue server as ano...
00

Difference Between Double Braces and PHP Tags

Hello. So I've discovered something and needed to know the difference. When I have this: {{ $msg = $errors->get('errormsg') }}...
03

Is there one artisan command that clears all caches?

Is there a single command that clears all caches including views and app caches? Currently, I'm having to type in... php arti...
05

Can't Use SQLite

When i try to migrate my database with SQLite i get the following error: [InvalidArgumentException] Database (homestead) does not...
08

Laravel 5.2 soapHeader Fail

I am calling "new \soapHeader (...)" and I get the following exception: 'Symfony\Component\Debug\Exception\FatalErrorException' with mes...
07

Cacheable user

Because my user model has many relationships, which are queried often, I want to make the user cacheable. Do I have to write a...
00

Bug MethodNotAllowedHttpException after authentication?

Hi guys, I have three tables - cards, notes, and users - with one-to-many relationships between cards and notes, and users and notes, respec...
07

Using laravel to build a system configuration tool

Hello, I'm fairly new to web development, and my aim is to build a embebed web application to reconfigure the network interfaces of a device...
05

Facades

Im having trouble with making a facade, I've tried to follow the docs, but keep getting this error. Call to undefined method App\URL\...
01

I have "web,api" middleware instead of just "api"

Hi, I'm having a problem when I want to build an API application. Each time when I try to send a POST request to my API, I get the Tok...
02

How to Upload PDF, Doc file using form and send the file to a mail

Hi Awesome People I wan to upload PDF or Doc file through form and send the same file to a mail or for now i just want to upload the file to...
09

Size of new installation is 200+mb

i am following the laravel from scratch series and i noticed that the size of my project folder (the one where laravel is installed is over 200mb)....
04

Change created_at with list method

Convert date in arrary using ->list this is my Controller: { $data = Level::where('created_at', '>=', Carbon::now...
05

From gets submited twice

When I hit the submit button my form gets saved twice and I can't find where that is happening. My blade...
01