Redirecting to previous route or page after login

Redirect to previous page after login // filters.php Route::filter(‘auth’, function () { // If the user is not logged in if (Auth::guest()) { return Redirect::guest(‘users/login’); } }); // Only authenticated users will be able to access routes that begins with // ‘admin’. Ex: ‘admin/posts’, ‘admin/categories’. Route::when(‘admin*’, ‘auth’);  

Continue reading


Laravel best resources for studies

Tutorial Links Angularjs with Laravel http://blog.neoxia.com/laravel4-and-angularjs/ https://github.com/neoxia/laravel4-angularjs-security https://www.youtube.com/watch?v=R1cF3qfoge8   Simple Blog Application with Laravel 4 http://www.codeheaps.com/php-programming/creating-blog-using-laravel-4-part-1/ http://www.codeheaps.com/php-programming/creating-blog-using-laravel-4-part-2/ http://www.codeheaps.com/php-programming/creating-a-blog-using-laravel-4-part-3-routing/ http://www.codeheaps.com/php-programming/creating-blog-using-laravel-4-part-4-layout-views/   MongoDB Connection with Laravel http://jenssegers.be/projects/Laravel-MongoDB Subscription based recurring payments http://code.tutsplus.com/tutorials/how-to-setup-recurring-payments–net-30168   User based authentication module https://cartalyst.com/manual/sentry   How to start Laravel in OpenShift https://www.openshift.com/quickstarts/laravel-41-quickstart

Continue reading