How can I create a migration and a model at once

Hi, the questions is pretty clear. How can I create a model and a migration at once. They always have the same name and I'm tired of doing that at...
01

Decrypting outside Laravel

I am trying to decrypt a string that was previously encrypted by Laravel and stored in a DB from a Node.JS application. I am having a proble...
07

Improving Query

$data = TopWireless::select(DB::raw('UserName, sum(AcctInputOctets) as Input , sum(AcctOutputOctets) as Output')) ->...
03

url show %2f not trailing slash?

this problem is show in my hosting server , my server use apache to handle the server. i want to show the profile->avatar with {{url('storage',...
01

[ErrorException] symlink() has been disabled for security reasons

i cant use php artisan storage:link through SSH to create symbolic link its show [ErrorException] symlink() has been disabled fo...
13

Eager loading relationship returning entire table

I have a simple database with the following tables: stories, authors, comments and users...
02

Should I run npm run prod locally or on server?

Hi everyone, I would like to know what the common convention is when it comes to deploying your source. I have read multiple differen...
02

Laravel 5.1 upgrade to Laravel 5.5 LTS

Laravel 5.1 upgrade to Laravel 5.5 LTS ?...
02

504 Gateway Timeout

Since this morning i get an 504 Gateway Timeout and sometimes an 502 Bad Gateway. I haven't changed anything, but the nginx.log says: conne...
07

Laracast discount coupon

Hi Admin, Does Laracasts offers discount coupons to its subscribers ? I had a monthly subscription a few months back and till date I did'nt receiv...
24

What is the button on the bottom right of the laracast site?

Hello Guys, I just wonder what the button on the bottom right of the laracast site? There is a character 'π'(seems 'n'.) in the button. Eve...
05

Define a function before the app starts

Hello! I need to run a function (this function must connect to an another API) when user opens my app in browser (once, and not every time h...
02

N days Difference in two date fields

Hi guys, Need help in Eloquent Query. Have two Date fields: delivery_date - format('Y-m-d') cr...
04

return JSON from multi level DB

Hello All, I am trying to do the following with the JSON return: [ { "Stream":{ "id"...
01

Laravel 5.5 Session::put not work

Laravel Version: 5.5 PHP Version: 7.2 Description: I write a function for login by ajax. Auth::loginUsi...
05

set value for form::select manualy

i want to set for each option value that I set {{ Form::select('age', [ 'young' => 'Under 18', 'adult' => '19 to 30', 'adult2' => 'Over 30...
01

Create Slug + id

Hi guys, I want to make a slug + thread id for my thread I want to make the slug look like this: web.com/thread/ThreadId-ThreadTitleInSlugFo...
07

How to change the default auth forgot pass email that is sent?

Can anyone point me for where i can change the email sent by native forgotpass?...
02

How to open downloaded laravel projects from GITHUB on localhost XAMPP

Hi, If i downloaded a laravel project from online GITHUB, How can i make this work on my localhost. Eg. if i download...
08

Make eloquent model for subtype.

I'm creating a school platform where students, teachers,... can login using their credentials. To reduce duplicate data I did not make a separate t...
08