- Installierter MYSQL-Server (z.b. mit MAMP)
- Leere Datenbank Name "WeTransferClone"
- Klonen des gesamten Projekts
- Erstellen des FileStack DEMO Accounts bzw. Free plans
Zu aller erst wechseln wir in das root Verzeichnis des WeTransferClone-Projekts. Hier führen wir nacheinander folgende Befehle aus:
- php composer update --no-scripts
- cp .env.example .env
- php artisan key:generate
Als nächstes bearbeiten wir noch die kopierte .env datei und passen den MYSQL DB Zugang und den Filestack API key an. Der hinterlegte Key würde ebenfalls funktionieren jedoch sieht man dann in seinem Filestack account keine Dateien.
- vim .env
Wenn die Datenbank richtig konfiguriert ist führen wir anschließend folgenden Befehl aus und bestätigen mit "yes":
- php artisan migrate
Unsere Datenbank sollte nun einige Tabellen wie "users", "files" und "migrations" beinhalten.
Um einen kleinen apache server zu starten und nichts nachinstallieren zu müssen führen wir nun:
- php artisan serve
aus. Auf 127.0.0.1:8000 sollte nun eine Webapplikation erreichbar sein. Neuen Account Registrieren und los gehts!
- Wird auf der Filestack instanz ein Bild gelöscht, weiss die Applikation nichts davon und wird nicht benachrichtigt.
- Wird eine Referenz zu einem Filestack Bild in der "files" Datenbank gelöscht ist das Bild zwar noch auf Filestack vorhanden kann aber innerhalb der Applikation nichtmehr gefunden werden
- Keine Dateireferenzen Datenbank-seitig löschen.
- Implementierung einer Löschfunktion welche sich den Problemen annimmt und die Dateien sowohl bei Filestack als auch Datenbank-seitig löscht.
- Keine Bilder Filestack seitig löschen
app/http/Controllers/ FileController/HomeController
app/ File/User
database/migrations
public/js/filepicker.js
resources/views
routes/web.php
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb combination of simplicity, elegance, and innovation give you tools you need to build any application with which you are tasked.
Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework. The Laravel documentation is thorough, complete, and makes it a breeze to get started learning the framework.
If you're not in the mood to read, Laracasts contains over 900 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.