/**
  * Shows the change password form with the given token
  *
  * @param  string $token
  *
  * @return  Illuminate\Http\Response
  */
 public function resetPassword($token)
 {
     SEOMeta::setTitle(Lang::get("tags.reset_password"));
     return View::make(Config::get('confide::reset_password_form'))->with('token', $token);
 }
Beispiel #2
0
    $managePosts->display_name = 'Manage Posts';
    $managePosts->save();
    
    $manageUsers = new Permission;
    $manageUsers->name = 'manage_users';
    $manageUsers->display_name = 'Manage Users';
    $manageUsers->save();
    
    $owner->perms()->sync(array($managePosts->id,$manageUsers->id));
    $admin->perms()->sync(array($managePosts->id));
    */
    //$bool = $user->hasRole("Owner");    // false
    //$bool = $user->hasRole("Admin");    // true
    //$bool = $user->can("manage_posts"); // true
    //$bool = $user->can("manage_users"); // false
    SEOMeta::setTitle('setTitle');
    SEOMeta::setDescription('setDescription');
    // is automatically limited to 160 characters
    OpenGraph::addImage('addImage.png');
    return View::make('hello');
});
// Sitemap
Route::get('sitemap', function () {
    $posts = DB::table('iumslas')->orderBy('created_at', 'desc')->get();
    foreach ($posts as $post) {
        $element = array('location' => "/sitemap-posts.xml", 'last_modified' => $post->created_at, 'change_frequency' => 'weekly', 'priority' => '0.90');
        SEOSitemap::addRaw($element);
    }
    return Response::make(SEOSitemap::generate(), 200, array('Content-Type' => 'text/xml'));
});
//RSS
 /**
  * Show the application dashboard.
  *
  * @return Response
  */
 public function index()
 {
     \SEOMeta::setTitle('Dashboard');
     return view('dashboard.index');
 }
Beispiel #4
0
// Confide routes
Route::get('users/create', 'UsersController@create');
Route::post('users', 'UsersController@store');
Route::get('users/login', 'UsersController@login');
Route::post('users/login', 'UsersController@doLogin');
Route::get('users/confirm/{code}', 'UsersController@confirm');
Route::get('users/forgot_password', 'UsersController@forgotPassword');
Route::post('users/forgot_password', 'UsersController@doForgotPassword');
Route::get('users/reset_password/{token}', 'UsersController@resetPassword');
Route::post('users/reset_password', 'UsersController@doResetPassword');
Route::get('users/logout', 'UsersController@logout');
Route::get('users/loginWithFacebook', 'UsersController@loginWithFacebook');
Route::get('/', function () {
    //for seo
    SEOMeta::setTitle('Dashboard');
    OpenGraph::addImage('addImage.png');
    OpenGraph::type('article');
    Twitter::type('summary');
    Twitter::addImage('twitter.png');
    //to change language
    App::setlocale('tr');
    return View::make('hello');
});
// Sitemap | Because of I have only users table, I use users table.
Route::get('sitemap', function () {
    //for sitemap
    $users = DB::table('users')->orderBy('created_at', 'desc')->get();
    foreach ($users as $user) {
        $element = array('location' => "/" . $user->slug, 'last_modified' => $user->created_at, 'change_frequency' => 'weekly', 'priority' => '0.90');
        SEOSitemap::addRaw($element);