Menu

Monday, 5 December 2016

Laravel 5 : Auth

Status : Draft

Mengakses Auth di View [1]

Referensi

  1. Laravel 5 new auth: Get current user and how to implement roles?, http://stackoverflow.com/questions/27571573/laravel-5-new-auth-get-current-user-and-how-to-implement-roles
  2. jwt-auth in Laravel5, https://laracasts.com/discuss/channels/general-discussion/jwt-auth-in-laravel5?page=1
  3. JSON Web Token Tutorial: An Example in Laravel and AngularJS, https://www.toptal.com/web/cookie-free-authentication-with-json-web-tokens-an-example-in-laravel-and-angularjs
  4. Token-Based Authentication for AngularJS and Laravel Apps, https://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps
  5. JWT Auth Guard for Laravel and Lumen Frameworks., https://github.com/irazasyed/jwt-auth-guard
  6. Role Based Authentication in Laravel with JWT, https://scotch.io/tutorials/role-based-authentication-in-laravel-with-jwt
  7. API Token Creation For Authentication In Laravel 5.2, https://www.cloudways.com/blog/api-token-authentication-laravel-5-2/

Wednesday, 30 November 2016

Laravel Themes

Status : Draft

Ada beberapa solusi manajemen themes di Laravel yang bisa dicoba, diantaranya :

  1. karlomikus/theme, https://packagist.org/packages/karlomikus/theme
  2. buzz/laravel-theme, https://packagist.org/packages/buzz/laravel-theme
  3. teepluss/laravel-theme, https://github.com/teepluss/laravel-theme
  4. igaster/laravel-theme, https://github.com/igaster/laravel-theme
  5. petercoles/Themes, https://github.com/petercoles/Themes

Tuesday, 29 November 2016

php artisan db:seed [ReflectionException] Class ..... does not exist

Jika menemukan error seperti :

[ReflectionException]              
  Class ....Seeder does not exist

Ketika melakuka seed, coba jalankan perintah :
composer dump-autoload

Referensi


  1.  Laravel5 Seeder, ReflectionException, "class ?????TableSeeder does not exist" in..., http://laravel.io/forum/01-31-2015-laravel5-seeder-reflectionexception-class-tableseeder-does-not-exist-in-illuminatecontainercontainerphp776

Truncate tables with foreign key constraints in a Laravel seed file.

Status : Draft

Referensi


  1. Truncate tables with foreign key constraints in a Laravel seed file., https://gist.github.com/isimmons/8202227

Monday, 7 November 2016