Skip to content

Commit c9a332a

Browse files
committed
Ported to Laravel 9
1 parent c2ab9d0 commit c9a332a

File tree

126 files changed

+17366
-234498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+17366
-234498
lines changed

.env.example

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ APP_DEBUG=true
55
APP_URL=http://localhost
66

77
LOG_CHANNEL=stack
8+
LOG_DEPRECATIONS_CHANNEL=null
89
LOG_LEVEL=debug
910

1011
DB_CONNECTION=mysql
@@ -16,7 +17,7 @@ DB_PASSWORD=
1617

1718
BROADCAST_DRIVER=log
1819
CACHE_DRIVER=file
19-
FILESYSTEM_DRIVER=local
20+
FILESYSTEM_DISK=local
2021
QUEUE_CONNECTION=sync
2122
SESSION_DRIVER=file
2223
SESSION_LIFETIME=120

.gitattributes

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
* text=auto
2-
*.css linguist-vendored
3-
*.scss linguist-vendored
4-
*.js linguist-vendored
2+
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
510
CHANGELOG.md export-ignore

.gitmodules

-17
This file was deleted.

.styleci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
php:
22
preset: laravel
3+
version: 8
34
disabled:
45
- no_unused_imports
56
finder:
67
not-name:
78
- index.php
8-
- server.php
99
js:
1010
finder:
1111
not-name:

README-laravel.md

-62
This file was deleted.

README.md

+49-44
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,64 @@
1-
# Knowfox
1+
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400"></a></p>
22

3-
Knowfox is my Personal Knowledge Management system. Having been an keen Evernote user since 2012, I finally got around to taking my precious notes to my own server.
3+
<p align="center">
4+
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
5+
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
6+
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
7+
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
8+
</p>
49

5-
[![Gitter](https://badges.gitter.im/knowfox-personal-knowledge-management/community.svg)](https://gitter.im/knowfox-personal-knowledge-management/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
10+
## About Laravel
611

7-
## Features
12+
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
813

9-
* Hierarchies. Inspired by Dave Winer's Worldoutline and Fargo, I want my knowledge base to have a deep structure, not be only two stories tall.
10-
* Tags. Where a single hierarchy is not enough, tags can link common topics in the least intrusive way. Since the times of Web 2.0, tags are everywhere.
11-
* Typed relationships. Sometimes though, hierarchies are too strict and tags are too loose. For example, I want to link authors to books, founders to companies, cause to effect. For this, typed, bi-directional relationships are king.
12-
* Markdown. There are other many similar and nice text formats, but Markdown is simple and popular and has won the race.
13-
* Bookmarking. I frequently take note of websites and like to mark them for later reading.
14-
* Pictures. My notes have lots of pictures. Mostly screenshots, but some photos or diagrams added as well.
15-
* Privacy. All my notes and pictures are mine and should be visible to no one.
16-
* Simple journalling. I used Evernote on a daily basis and will do so with Knowfox, too. Easy, date-based journalling is a feature I use every day.
17-
* Sharing. Sometimes I want to share a note and its pictures. This should be painless and explicit.
18-
* Publishing. Knowledge wants to be communicated sometimes. For this, I want to export a sub-tree of my hierarchy as beautiful slide deck, effortlessly.
14+
- [Simple, fast routing engine](https://laravel.com/docs/routing).
15+
- [Powerful dependency injection container](https://laravel.com/docs/container).
16+
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
17+
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
18+
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
19+
- [Robust background job processing](https://laravel.com/docs/queues).
20+
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
1921

20-
This gives me the basic structure. On top of this,
22+
Laravel is accessible, powerful, and provides tools required for large, robust applications.
2123

22-
* all my Evernote notes should go in there,
23-
* my catalogue of eBooks as well,
24-
* my timelines, too.
24+
## Learning Laravel
2525

26-
The resulting system should be easy to understand, maintain and deploy. CouchDB would have been an nice option with Hoodie on to of it. Ultimately though, I felt more confident with *Laravel 5 and MySQL* so this is what Knowfox is built on.
26+
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
2727

28-
## Status
28+
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
2929

30-
Knowfox is usable and very nicely so.
30+
## Laravel Sponsors
3131

32-
* Full text search works, maybe even better than the one in Evernote.
33-
* The integrated Markdown editor has no inline preview of images, but otherwise is a joy to use.
34-
* Picture handling is very slick, thanks to the integrated Dropzone.js and automatic inclusion of image links into the note's Markdown.
35-
* A bookmarklet helps me to bookmark websites and gather their content for later reference.
36-
* I have imported my most important Evernote notebooks and now rely on it for my everyday work and projects.
37-
* There is a hosted version at https://knowfox.com which is free to use. However, I make no guarantees as to the stability of this service. Ultimately, Knowfox is meant for self hosting.
32+
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).
3833

39-
There is a [brief presentation](https://knowfox.com/presentation/47d6c8de/013c/11e7/8a8c/56847afe9799/index.html) about the system, too.
34+
### Premium Partners
4035

41-
In addition to what Laravel requires, Knowfox uses the following NPM modules:
36+
- **[Vehikl](https://vehikl.com/)**
37+
- **[Tighten Co.](https://tighten.co)**
38+
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
39+
- **[64 Robots](https://64robots.com)**
40+
- **[Cubet Techno Labs](https://cubettech.com)**
41+
- **[Cyber-Duck](https://cyber-duck.co.uk)**
42+
- **[Many](https://www.many.co.uk)**
43+
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
44+
- **[DevSquad](https://devsquad.com)**
45+
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
46+
- **[OP.GG](https://op.gg)**
47+
- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)**
48+
- **[Lendio](https://lendio.com)**
4249

43-
* selectize
44-
* simplemde
45-
* dropzone
46-
* jquery-ui
47-
* jquery-resizable
48-
* featherlight
49-
* jqtree
50-
* snackbar
51-
* v-calendar
52-
* jquery
53-
* bootstrap-sass
54-
* vue
55-
* vue-template-compiler
50+
## Contributing
5651

57-
## The Future
52+
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
5853

59-
I have built Knowfox in a frency to have a usable system as soon as possible. For others to be able to contribute, it most urgently needs automated tests. Some more importers for my other databases for eBooks and timelines will follow. Maybe native apps or a FUSE filesystem at some point.
54+
## Code of Conduct
55+
56+
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
57+
58+
## Security Vulnerabilities
59+
60+
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [[email protected]](mailto:[email protected]). All security vulnerabilities will be promptly addressed.
61+
62+
## License
63+
64+
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

app/Console/Kernel.php

-9
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77

88
class Kernel extends ConsoleKernel
99
{
10-
/**
11-
* The Artisan commands provided by your application.
12-
*
13-
* @var array
14-
*/
15-
protected $commands = [
16-
//
17-
];
18-
1910
/**
2011
* Define the application's command schedule.
2112
*

app/Exceptions/Handler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Handler extends ExceptionHandler
1010
/**
1111
* A list of the exception types that are not reported.
1212
*
13-
* @var array
13+
* @var array<int, class-string<Throwable>>
1414
*/
1515
protected $dontReport = [
1616
//
@@ -19,7 +19,7 @@ class Handler extends ExceptionHandler
1919
/**
2020
* A list of the inputs that are never flashed for validation exceptions.
2121
*
22-
* @var array
22+
* @var array<int, string>
2323
*/
2424
protected $dontFlash = [
2525
'current_password',

app/Http/Controllers/Auth/AuthenticatedSessionController.php

-54
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Auth;
4+
5+
use App\Http\Controllers\Controller;
6+
use App\Providers\RouteServiceProvider;
7+
use Illuminate\Foundation\Auth\ConfirmsPasswords;
8+
9+
class ConfirmPasswordController extends Controller
10+
{
11+
/*
12+
|--------------------------------------------------------------------------
13+
| Confirm Password Controller
14+
|--------------------------------------------------------------------------
15+
|
16+
| This controller is responsible for handling password confirmations and
17+
| uses a simple trait to include the behavior. You're free to explore
18+
| this trait and override any functions that require customization.
19+
|
20+
*/
21+
22+
use ConfirmsPasswords;
23+
24+
/**
25+
* Where to redirect users when the intended url fails.
26+
*
27+
* @var string
28+
*/
29+
protected $redirectTo = RouteServiceProvider::HOME;
30+
31+
/**
32+
* Create a new controller instance.
33+
*
34+
* @return void
35+
*/
36+
public function __construct()
37+
{
38+
$this->middleware('auth');
39+
}
40+
}

0 commit comments

Comments
 (0)