pojokcodeid.nvim-lazy/my-snippets/laravel5/snippets/auth.json
asep komarudin 1ab37bd478 update
2023-01-15 00:19:37 +07:00

72 lines
No EOL
2.1 KiB
JSON

{
"Auth-check.sublime-snippet": {
"prefix": "Auth::check",
"body": [
"Auth::check()"
],
"description": "Determine if the current user is authenticated."
},
"Auth-guest.sublime-snippet": {
"prefix": "Auth::guest",
"body": [
"Auth::guest()"
],
"description": "Determine if the current user is a guest."
},
"Auth-logout.sublime-snippet": {
"prefix": "Auth::logout",
"body": [
"Auth::logout();"
],
"description": "Log the user out of the application."
},
"Auth-user.sublime-snippet": {
"prefix": "Auth::user",
"body": [
"Auth::user()"
],
"description": "Get the currently authenticated user."
},
"Auth-guard": {
"prefix": "Auth::guard",
"body": [
"Auth::guard('${1:guardName}')$2"
],
"description": "customize the \"guard\" that is used to authenticate and register users"
},
"Auth-attempt": {
"prefix": "Auth::attempt",
"body": [
"Auth::attempt([${1:'email' => \\$email, 'password' => \\$password}])$2"
],
"description": "Log by passing an array with key-value"
},
"Auth-login": {
"prefix": "Auth::login",
"body": [
"Auth::login(${1:\\$user});$2"
],
"description": "Log an existing user instance into your application"
},
"Auth-loginUsingId": {
"prefix": "Auth::loginUsingId",
"body": [
"Auth::loginUsingId($1);$2"
],
"description": "To log a user into the application by their ID"
},
"Auth-viaRemember": {
"prefix": "Auth::viaRemember",
"body": [
"Auth::viaRemember()"
],
"description": "Determine if the user was authenticated using the \"remember me\" cookie."
},
"Auth-routes": {
"prefix": "Auth::routes",
"body": [
"Auth::routes();"
],
"description": "Set authentication routes (v5.3)"
}
}