Sunday, 31 May 2020
Kahani Kismat Ki (Semma Botha Aagathey). New Released Hindi Dubbed Full Movie Kahani Kismat Ki (Semma Botha Aagathey). Indian Tamil-language action thriller Movie Kahani Kismat Ki (Semma Botha Aagathey). Kahani Kismat Ki (Semma Botha Aagathey) Movie directed by Badri Venkatesh. Full HD Movie Kahani Kismat Ki (Semma Botha Aagathey).
Thursday, 28 May 2020
Alag - He is Different. Bollywood Movie Alag - He is Different. Full HD Movie Alag - He is Different. Alag - He is Different is a 2006 Indian Hindi science fiction Movie. Alag - He is Different starring Akshay Kapoor and Dia Mirza and Yatin Karyekar in lead roles. Alag - He is Different directed by Ashu Trikha and produced by Subi Samuel.
Ek Aur Bol Bachchan. Telugu Movie In Hindi Dubbed Ek Aur Bol Bachchan. Indian Telugu-language action comedy Movie Ek Aur Bol Bachchan. Ek Aur Bol Bachchan directed by K. Vijaya Bhaskar. Ek Aur Bol Bachchan Starring Venkatesh, Ram, Anjali, Shazahn Padamsee in lead roles. Ek Aur Bol Bachchan is a remake of the 2012 Hindi film Bol Bachchan
Indian Soldier Never On Holiday. Tamil Hindi Dubbed Movie Indian Soldier Never On Holiday .Full HD Movie Indian Soldier Never On Holiday .Indian Tamil-language action thriller Movie Indian Soldier Never On Holiday . The Movie Indian Soldier Never On Holiday revolves around an Indian Army officer on a mission to track down, destroy and deactivate a sleeper cell, after witnessing and barely escaping a bomb blast executed by the cell. Super Hit Movie Indian Soldier Never On Holiday .
Wednesday, 27 May 2020
Tuesday, 26 May 2020
Tango Charlie. Bollywood Superhit Movie Tango Charlie. Indian Hindi war Movie Tango Charlie. Tango Charlie Movie written and directed by Mani Shankar. Very Intense & Influential Actor Ajay Devgan Movie Tango Charlie. Full HD Movie Tango Charlie. Other Legendary Actors in Movie Tango Charlie are Sanjay Dutt, Sunil Shetty, Bobby Deol
Monday, 25 May 2020
Kohram. Bollywood Movie Kohram. Bollywood Super Hit Movie Kohram. Two Legendary Actor Amitabh Bachan and Nana Patekar Movie Kohram. Full HD Movie Kohram. Actress Tabu in main cast with Jaya Pradha, Jackie Shroff and other supporting actors in Movie Kohram. Hindi Action Movie Kohram. Kohram is a 1999 Indian Hindi action Movie directed by Mehul Kumar.
Sunday, 24 May 2020
BAAHUBALI 2. BAAHUBALI 2 THE CONCLUSION. BAAHUBALI 2 FULL MOVIE HINDI (2017). PRABHAS,ANUSHKA SHETTY,RANA DUGGUBATTI Movie BAAHUBALI 2 . Full HD Movie BAAHUBALI 2. BAAHUBALI 2 The Conclusion was made simultaneously in Telugu and Tamil and later dubbed into Hindi, Malayalam, Japanese, Russian and Chinese.
Saturday, 23 May 2020
Wednesday, 20 May 2020
Monday, 18 May 2020
Sunday, 17 May 2020
jwt in laravel 6
Jwt in laravel 6
After installing a fresh laravel 6 we need to follow these steps to secure Rest
Api Using Jwt Token.
Step: 1 Create auth routes
-------------------------------------------------------------
composer require laravel/ui "^1.0" --dev
php artisan ui vue --auth
php artisan migrate
Step: 2 Install jwt package
---------------------------
composer require tymon/jwt-auth
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
php artisan jwt:secret
Add service provider in app/app.php inside 'providers'
Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
Step 3#: Update your user model
---------------------------
<?php
namespace App;
use Tymon\JWTAuth\Contracts\JWTSubject;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable implements JWTSubject
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
public function getJWTIdentifier()
{
return $this->getKey();
}
public function getJWTCustomClaims()
{
return [];
}
}
Step: 4# Create middleware
---------------------------
php artisan make:middleware AuthJwt
Middleware code
$routeMiddleware in array
'jwtauth' => \App\Http\Middleware\AuthJwt::class,
Api Using Jwt Token.
Step: 1 Create auth routes
-------------------------------------------------------------
composer require laravel/ui "^1.0" --dev
php artisan ui vue --auth
php artisan migrate
Step: 2 Install jwt package
---------------------------
composer require tymon/jwt-auth
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
php artisan jwt:secret
Add service provider in app/app.php inside 'providers'
Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
Step 3#: Update your user model
---------------------------
<?php
namespace App;
use Tymon\JWTAuth\Contracts\JWTSubject;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable implements JWTSubject
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
public function getJWTIdentifier()
{
return $this->getKey();
}
public function getJWTCustomClaims()
{
return [];
}
}
Step: 4# Create middleware
---------------------------
php artisan make:middleware AuthJwt
Middleware code
$routeMiddleware in array
'jwtauth' => \App\Http\Middleware\AuthJwt::class,
change guard in auth.php
driver' => 'jwt',
Middleware code
<?php
namespace App\Http\Middleware;
use Illuminate\Support\Facades\Auth;
use Closure;
class AuthJwt
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
try {
$user = $this->guard()->userOrFail();
} catch (\Tymon\JWTAuth\Exceptions\UserNotDefinedException $e) {
echo $e->getMessage();
}
return $next($request);
}
public function guard()
{
return Auth::guard('api');
}
}
Step:5# Create Auth controller
---------------------------
php artisan make:controller AuthController
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Http\Controllers\Controller;
class AuthController extends Controller
{
public function login(Request $request)
{
$credentials = request(['email', 'password']);
if (! $token = auth('api')->attempt($credentials)) {
return response()->json(['error' => 'Invalid Credentials'], 401);
}
return $this->respondWithToken($token);
}
/**
* Get the authenticated User
*
* @return \Illuminate\Http\JsonResponse
*/
public function me()
{
return response()->json($this->guard()->user());
}
/**
* Log the user out (Invalidate the token)
*
* @return \Illuminate\Http\JsonResponse
*/
public function logout()
{
$this->guard()->logout();
return response()->json(['message' => 'Successfully logged out']);
}
/**
* Refresh a token.
*
* @return \Illuminate\Http\JsonResponse
*/
public function refresh()
{
return $this->respondWithToken($this->guard('api')->refresh());
}
/**
* Get the token array structure.
*
* @param string $token
*
* @return \Illuminate\Http\JsonResponse
*/
protected function respondWithToken($token)
{
return response()->json([
'access_token' => $token,
'token_type' => 'bearer',
'expires_in' => $this->guard('api')->factory()->getTTL() * 60
]);
}
/**
* Get the guard to be used during authentication.
*
* @return \Illuminate\Contracts\Auth\Guard
*/
public function guard()
{
return Auth::guard('api');
}
}
?>
Step 6#: Adding auth routes
--------------------------------
Route::post('login', 'AuthController@login');
Route::get('me', 'AuthController@me')->middleware('jwtauth');
Route::get('logout', 'AuthController@logout');
Route::get('refresh', 'AuthController@refresh');
Postman testing
Saturday, 16 May 2020
Thursday, 14 May 2020
Tuesday, 12 May 2020
Sunday, 10 May 2020
Saturday, 9 May 2020
Pearl Harbor (2001). Tora Tora Tora Full Hollywood Movie Pearl Harbor.Pearl Harbor Full Movie 1080.one of the most terrible battles of World War II Pearl Harbor.
December 7 1941 was a turning point in history. The world was forever changed after the fateful attack on Pearl Harbour. It was the most daring naval and army manoeuvres of all time. At 7.53am a Japanese commander radioed to his pilots, "Tora, Tora, Tora!" In a matter of minutes, bombs and torpedoes fell from the sky paralysing U.S pacific naval forces.
Friday, 8 May 2020
Thursday, 7 May 2020
Subscribe to:
Posts (Atom)