Example #1
0
 public function post_create_apikey()
 {
     $key = Str::random(25);
     $create_apikey = new ApiKey(array('api_key' => $key));
     $create_apikey->save();
     return Redirect::back()->with('key', 'Your new api key is' . $key);
 }