Skip to content

Commit

Permalink
feat: laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed Apr 15, 2024
1 parent 665350e commit 04ebfd4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
28 changes: 18 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
}
],
"require": {
"php": "^8.1",
"illuminate/support": "^10.0",
"illuminate/routing": "^10.0",
"illuminate/database": "^10.0",
"laravelcollective/html": "^6.4.1",
"rap2hpoutre/fast-excel": "^5.1"
"php": "^8.2",
"illuminate/support": "^11.0",
"illuminate/routing": "^11.0",
"illuminate/database": "^11.0",
"rap2hpoutre/fast-excel": "^5.4.0",
"spatie/laravel-html": "^3.7"
},
"require-dev": {
"phpunit/phpunit" : "^10",
"phpunit/phpunit" : "^10|^11",
"larastan/larastan": "^2.9",
"rector/rector": "^1.0",
"orchestra/testbench": "^8.21",
"orchestra/testbench": "^9",
"pestphp/pest": "^2.34",
"pestphp/pest-plugin-laravel": "^2.3"
},
Expand All @@ -48,7 +48,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "10.x-dev"
"dev-master": "11.x-dev"
},
"laravel": {
"providers": [
Expand All @@ -60,5 +60,13 @@
"allow-plugins": {
"pestphp/pest-plugin": true
}
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/yajra"
}
]
}
10 changes: 5 additions & 5 deletions src/Views/form.blade.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<div class="form-group {{$errors->has('region_id')}}">
<label>Region:</label>
{{app('form')->select('region_id', $regions, null, ['class' => 'form-control', 'id' => 'region_id'])}}
{{html()->select('region_id', $regions)->class('form-control')}}
{{$errors->first('region_id')}}
</div>
<div class="form-group {{$errors->has('province_id')}}">
<label>Province:</label>
{{app('form')->select('province_id', [], null, ['class' => 'form-control', 'id' => 'province_id'])}}
{{html()->select('province_id')->class('form-control')}}
{{$errors->first('province_id')}}
</div>
<div class="form-group {{$errors->has('city_id')}}">
<label>City:</label>
{{app('form')->select('city_id', [], null, ['class' => 'form-control', 'id' => 'city_id'])}}
{{html()->select('city_id')->class('form-control')}}
{{$errors->first('city_id')}}
</div>
<div class="form-group {{$errors->has('barangay_id')}}">
<label>Barangay:</label>
{{app('form')->select('barangay_id', [], null, ['class' => 'form-control', 'id' => 'barangay_id'])}}
{{html()->select('barangay_id')->class('form-control')}}
{{$errors->first('barangay_id')}}
</div>
<div class="form-group {{$errors->has('street')}}">
<label>Street:</label>
{{app('form')->text('street', null, ['class' => 'form-control'])}}
{{html()->text('street')->class('form-control')}}
{{$errors->first('street')}}
</div>

Expand Down

0 comments on commit 04ebfd4

Please sign in to comment.