Skip to content

Commit

Permalink
Merge pull request #215 from nasirkhan/release
Browse files Browse the repository at this point in the history
v7.9.0
  • Loading branch information
nasirkhan committed Aug 22, 2020
2 parents b9c44cd + 91f55a7 commit c4ae904
Show file tree
Hide file tree
Showing 15 changed files with 649 additions and 546 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
<div class="col-4">
<div class="float-right">
<x-buttons.create route='{{ route("backend.$module_name.create") }}' title="{{__('Create')}} {{ ucwords(Str::singular($module_name)) }}"/>

<div class="btn-group" role="group" aria-label="Toolbar button groups">
<div class="btn-group" role="group">
<button id="btnGroupToolbar" type="button" class="btn btn-secondary dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<button id="btnGroupToolbar" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-cog"></i>
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupToolbar">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@extends('frontend.layouts.app')

@section('title')
Comments
@stop
@section('title') Comments @endsection

@section('content')
<div class="page-header page-header-small">
Expand All @@ -16,11 +14,11 @@
</h1>

<div class="text-center">
@php $title_text = 'Tags - Mukto Library'; @endphp
@php $title_text = 'Tags'; @endphp

<button class="btn btn-primary btn-icon btn-round" data-sharer="facebook" data-hashtag="MuktoLibrary" data-url="{{url()->full()}}" data-toggle="tooltip" title="Share on Facebook" data-original-title="Share on Facebook"><i class="fab fa-facebook-square"></i></button>
<button class="btn btn-primary btn-icon btn-round" data-sharer="facebook" data-hashtag="LaravelStarter" data-url="{{url()->full()}}" data-toggle="tooltip" title="Share on Facebook" data-original-title="Share on Facebook"><i class="fab fa-facebook-square"></i></button>

<button class="btn btn-primary btn-icon btn-round" data-sharer="twitter" data-via="MuktoLibrary" data-title="{{$title_text}}" data-hashtags="MuktoLibrary" data-url="{{url()->full()}}" data-toggle="tooltip" title="Share on Twitter" data-original-title="Share on Twitter"><i class="fab fa-twitter"></i></button>
<button class="btn btn-primary btn-icon btn-round" data-sharer="twitter" data-via="LaravelStarter" data-title="{{$title_text}}" data-hashtags="LaravelStarter" data-url="{{url()->full()}}" data-toggle="tooltip" title="Share on Twitter" data-original-title="Share on Twitter"><i class="fab fa-twitter"></i></button>

<button class="btn btn-primary btn-icon btn-round" data-sharer="whatsapp" data-title="{{$title_text}}" data-url="{{url()->full()}}" data-toggle="tooltip" title="Share on Whatsapp" data-original-title="Share on Whatsapp" data-web=""><i class="fab fa-whatsapp"></i></button>

Expand Down Expand Up @@ -80,5 +78,4 @@
</div>
</div>


@endsection
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@extends('frontend.layouts.app')

@section('title')
{{$$module_name_singular->name}}
@stop
@section('title') {{$$module_name_singular->name}} @endsection


@section('content')
Expand Down Expand Up @@ -152,5 +150,4 @@
</div>
</div>


@endsection
12 changes: 4 additions & 8 deletions Modules/Tag/Resources/views/frontend/tags/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
@extends('frontend.layouts.app')

@section('title')
Tags
@stop

@section('title') Tags @endsection

@section('content')
<div class="page-header page-header-small">
Expand All @@ -17,11 +14,11 @@
</h1>

<div class="text-center">
@php $title_text = 'Tags - Mukto Library'; @endphp
@php $title_text = 'Tags - LaravelStarter'; @endphp

<button class="btn btn-primary btn-icon btn-round" data-sharer="facebook" data-hashtag="MuktoLibrary" data-url="{{url()->full()}}" data-toggle="tooltip" title="Share on Facebook" data-original-title="Share on Facebook"><i class="fab fa-facebook-square"></i></button>
<button class="btn btn-primary btn-icon btn-round" data-sharer="facebook" data-hashtag="LaravelStarter" data-url="{{url()->full()}}" data-toggle="tooltip" title="Share on Facebook" data-original-title="Share on Facebook"><i class="fab fa-facebook-square"></i></button>

<button class="btn btn-primary btn-icon btn-round" data-sharer="twitter" data-via="MuktoLibrary" data-title="{{$title_text}}" data-hashtags="MuktoLibrary" data-url="{{url()->full()}}" data-toggle="tooltip" title="Share on Twitter" data-original-title="Share on Twitter"><i class="fab fa-twitter"></i></button>
<button class="btn btn-primary btn-icon btn-round" data-sharer="twitter" data-via="LaravelStarter" data-title="{{$title_text}}" data-hashtags="LaravelStarter" data-url="{{url()->full()}}" data-toggle="tooltip" title="Share on Twitter" data-original-title="Share on Twitter"><i class="fab fa-twitter"></i></button>

<button class="btn btn-primary btn-icon btn-round" data-sharer="whatsapp" data-title="{{$title_text}}" data-url="{{url()->full()}}" data-toggle="tooltip" title="Share on Whatsapp" data-original-title="Share on Whatsapp" data-web=""><i class="fab fa-whatsapp"></i></button>

Expand Down Expand Up @@ -81,5 +78,4 @@
</div>
</div>


@endsection
4 changes: 1 addition & 3 deletions Modules/Tag/Resources/views/frontend/tags/show.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@extends('frontend.layouts.app')

@section('title')
{{$$module_name_singular->name}}
@stop
@section('title') {{$$module_name_singular->name}} @endsection


@section('content')
Expand Down
23 changes: 16 additions & 7 deletions app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ class LoginController extends Controller

use AuthenticatesUsers;

/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;

/**
* Create a new controller instance.
*
Expand All @@ -44,6 +37,22 @@ public function __construct()
$this->middleware('guest')->except('logout');
}

/**
* Where to redirect users after login.
*
* @var string
*/
public function redirectTo()
{
$redirectTo = request()->redirectTo;

if ($redirectTo) {
return $redirectTo;
} else {
return RouteServiceProvider::HOME;
}
}

/**
* Redirect the user to the Provider (Facebook, Google, GitHub...) authentication page.
*
Expand Down
24 changes: 17 additions & 7 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Events\Frontend\UserRegistered;
use App\Http\Controllers\Controller;
use App\Models\User;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
Expand All @@ -24,13 +25,6 @@ class RegisterController extends Controller

use RegistersUsers;

/**
* Where to redirect users after registration.
*
* @var string
*/
protected $redirectTo = '/';

/**
* Create a new controller instance.
*
Expand All @@ -41,6 +35,22 @@ public function __construct()
$this->middleware('guest');
}

/**
* Where to redirect users after login.
*
* @var string
*/
public function redirectTo()
{
$redirectTo = request()->redirectTo;

if ($redirectTo) {
return $redirectTo;
} else {
return RouteServiceProvider::HOME;
}
}

/**
* Get a validator for an incoming registration request.
*
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Backend/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use App\Authorizable;
use App\Events\Backend\UserCreated;
use App\Events\Backend\UserUpdated;
use App\Events\Backend\UserProfileUpdated;
use App\Events\Backend\UserUpdated;
use App\Exceptions\GeneralException;
use App\Http\Controllers\Controller;
use App\Models\Permission;
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RedirectIfAuthenticated
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->check()) {
return redirect('/');
return redirect()->intended('/');
}

return $next($request);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"keywords": ["framework", "laravel", "cms", "starter", "admin"],
"license": "GPL-3.0-or-later",
"type": "project",
"version": "v7.7.1",
"version": "v7.9.0",
"require": {
"php": "^7.2.5",
"alexusmai/laravel-file-manager": "^2.4",
Expand Down
Loading

0 comments on commit c4ae904

Please sign in to comment.