Vorausetzungen
- CentOS 7: unterstützt PHP 5.4.x, d.h. wir müssen Laravel 4.X nutzen, Laravel 5 benötigt PHP >= 5.5.9, was nicht per Default in CentOS 7 verfügbar ist.
Getting Started:
https://www.youtube.com/playlist?list=PL3NNgfBeSjc2HJN0MQJp3T5WhJ5E466-D
Documentation
- official doc:http://laravel.com/docs/4.2/
- API doc: http://laravel.com/api/4.2/index.html
- cheat sheet: http://cheats.jesse-obrien.ca/
Useful
Create Model, View and Controller with one command:
Code Block | ||
---|---|---|
| ||
php artisan generate:scaffold qos --fields="ds_rate_max:integer:unsigned, us_rate_max:integer:unsigned" |
Other Stuff
- Namespaces in Laravel: http://stackoverflow.com/questions/14714848/using-namespaces-in-laravel-4
- Relations in Laravel:
Widget Connector url https://www.youtube.com/watch?v=xIBST5vVq84 - http://culttt.com/2013/07/08/creating-flexible-controllers-in-laravel-4-using-repositories/
- http://laravel.com/api/4.2/Illuminate/Hashing/HasherInterface.html
- http://code.tutsplus.com/tutorials/laravel-4-a-start-at-a-restful-api-updated--net-29785
Editor:
- empfohlen wird sublime3.
ich nutze diesen mittels sshfs (mounten von SSH Ordnern) sehr gut, z.B. folgender Befehl
Code Block language bash sshfs -p 8024 80.243.40.25:/var/www /home/schmto/sshfs
- Blade Syntax Highlighting in Sublime 3:
Widget Connector url https://www.youtube.com/watch?v=vws-HbY7opY - https://packagecontrol.io/installation#st3