Skip to content

Instantly share code, notes, and snippets.

@derekphilipau
Created September 18, 2017 08:35
Show Gist options
  • Save derekphilipau/455ea1b842a72aee42d9c765d4418d3a to your computer and use it in GitHub Desktop.
Save derekphilipau/455ea1b842a72aee42d9c765d4418d3a to your computer and use it in GitHub Desktop.
laravel package dev using repository
1. Download or clone the https://github.com/derekphilipau/LogViewer
2. Create a new laravel installation. Generate application key.
3. In composer.json, add a filesystem repository:
```
"repositories": [
{
"type": "path",
"url": "/Path/to/project/on/your/filesystem/LogViewer"
}
],
```
4. Add in the filesystem LogViewer:
```
composer require "arcanedev/log-viewer @dev"
```
5. Publish the LogViewer files:
```
artisan log-viewer:publish
```
6. In config/app.php, set loggin to "daily":
```
'log' => env('APP_LOG', 'daily'),
```
7. In config/log-viewer.php, set theme to either bootstrap-3 or bootstrap-4:
```
'theme' => 'bootstrap-3',
```
8. View the website
```
php artisan serve
```
9. Open in browser:
```
http://127.0.0.1:8000/log-viewer
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment