Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group routes and resources #4

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.vscode/
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ It is a Laravel 8 blade template based demo project reflecting advance features
7. Datatables

## Getting Started Step by Step
1. In your root folder, clone the project file using git clone https://github.com/rafi021/Laravel-Advance-Ecommerce.git
1. In your root folder, clone the project file using git clone https://github.com/farghly/Laravel-Advance-Ecommerce.git
2. Open terminal (bash/cmd). Then go to project folder using command

```sh
Expand Down
3 changes: 3 additions & 0 deletions app/Guards/AdminStatefulGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace App\Guards;

use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Guard;

interface AdminStatefulGuard extends Guard
{
/**
Expand Down
10 changes: 5 additions & 5 deletions app/Models/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

class Admin extends Authenticatable
{
use HasApiTokens;
use HasFactory;
use HasProfilePhoto;
use Notifiable;
use TwoFactorAuthenticatable;
use HasApiTokens,
HasFactory,
HasProfilePhoto,
Notifiable,
TwoFactorAuthenticatable;

/**
* The attributes that are mass assignable.
Expand Down
10 changes: 5 additions & 5 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

class User extends Authenticatable
{
use HasApiTokens;
use HasFactory;
use HasProfilePhoto;
use Notifiable;
use TwoFactorAuthenticatable;
use HasFactory,
HasApiTokens,
Notifiable,
HasProfilePhoto,
TwoFactorAuthenticatable;

/**
* The attributes that are mass assignable.
Expand Down
6 changes: 4 additions & 2 deletions app/Providers/FortifyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\ServiceProvider;
use Laravel\Fortify\Fortify;
use Auth;
use Illuminate\Support\Facades\Auth as FacadesAuth;

class FortifyServiceProvider extends ServiceProvider
{
Expand All @@ -30,7 +30,9 @@ public function register()
$this->app->when([AdminController::class, AttemptToAuthenticate::class, RedirectIfTwoFactorAuthenticatable::class ])
->needs(StatefulGuard::class)
->give(function(){
return Auth::guard('admin');

return FacadesAuth::guard('admin');

});
}

Expand Down
4 changes: 4 additions & 0 deletions public/backend/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24039,3 +24039,7 @@ img.away, img.busy, img.offline, img.online {
z-index: -1; }

/*# sourceMappingURL=style.css.map */
.widget-user .widget-user-image > img{
width: 92px !important;
height: 92px !important;
}
Loading