Skip to content

Commit

Permalink
feat: added support Laravel 9
Browse files Browse the repository at this point in the history
- Dropped Laravel 6 & 7 support
  • Loading branch information
oliuz committed Feb 28, 2022
1 parent 7dc7557 commit b7d826e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 26 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"minimum-stability": "dev",
"prefer-stable" : true,
"require": {
"php": "^7.2|^8.0",
"laravel/framework": "^6.0|^7.0|^8.0"
"php": "^7.4|^8.0.2",
"laravel/framework": "^8.0|^9.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0|^9.0",
"mockery/mockery": "^1.0",
"illuminate/database": "^6.0|^7.0|^8.0",
"orchestra/testbench": "^4.0|^5.0"
"illuminate/database": "^8.0|^9.0",
"orchestra/testbench": "^6.0|^7.0"
},
"autoload": {
"psr-4": {
Expand Down
40 changes: 21 additions & 19 deletions stubs/resources/views/create.blade.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
<div class="modal fade" id="createModalCenter" tabindex="-1" role="dialog"
aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal fade" id="createModalCenter" tabindex="-1" aria-labelledby="createModalCenter" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Create a new team</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form class="form-horizontal" method="POST" action="{{route('teams.store', '#create')}}">
@csrf
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h5 class="modal-title mb-3" id="exampleModalCenterTitle">Create a new team</h5>
@csrf
<div class="modal-body">
<div class="form-group">

<div class="form-group">
<input id="team-name" type="text" class="form-control @error('name') is-invalid @enderror"
name="name" value="{{ old('name') }}" placeholder="Enter name" required>

<input id="team-name" type="text" class="form-control @error('name') is-invalid @enderror"
name="name" value="{{ old('name') }}" placeholder="Enter name" required>

@error('name')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
@error('name')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror

</div>
</div>
<button class="btn btn-primary btn-block btn-lg">Save</button>

</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button class="btn btn-primary">Save</button>
</div>
</form>
</div>
Expand Down
1 change: 0 additions & 1 deletion stubs/resources/views/includes/messages.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@if ($message = Session::get('success'))
<div class="alert alert-success alert-block">
<button type="button" class="close" data-dismiss="alert">x</button>
<strong>{{ $message }}</strong>
</div>
@endif
4 changes: 2 additions & 2 deletions stubs/resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<h3>
Teams
<div class="btn-group float-right" role="group" aria-label="Basic example">
<button type="button" class="btn btn-secondary btn-sm" data-toggle="modal"
data-target="#createModalCenter">
<button type="button" class="btn btn-secondary btn-sm" data-bs-toggle="modal"
data-bs-target="#createModalCenter">
<i class="fa fa-plus"></i> Create team
</button>
</div>
Expand Down

0 comments on commit b7d826e

Please sign in to comment.