Skip to main content
Tutorial Free

View logs with Artisan Tail command in Laravel 5+

July 21, 2015
1 min read
If you moved from Laravel 4 to version 5 or 5.x - you will miss an Artisan command artisan tail for your log viewing. How to get it back? Luckily, there's a package for that. If you run artisan tail on those newer versions, you will get something like this: 0721_laravel_artisan_tail To fix that - use a package spatie/laravel-tail created by Freek Van der Herten, better known as Spatie. Simply add that to composer.json and run composer update:
"spatie/laravel-tail": "1.1.*"
(latest version at the moment is 1.1.1) 0721_laravel_artisan_tail02 Then - add this line to config/app.php file - to providers array:
// ...
Spatie\Tail\TailServiceProvider::class,
// ...
And that's it - artisan tail will work again like a charm! By the way, I recommend Freek's personal blog - a lot of useful tips on Laravel and PHP in general: Murze.be

Enjoyed This Tutorial?

Get access to all premium tutorials, video and text courses, and exclusive Laravel resources. Join our community of 10,000+ developers.

Comments & Discussion

No comments yet…

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.