Skip to content

Commit

Permalink
feat(more): добавление наработок по sail и индексам
Browse files Browse the repository at this point in the history
  • Loading branch information
Sline-X committed Jul 5, 2024
1 parent dfc1128 commit 20264d3
Show file tree
Hide file tree
Showing 26 changed files with 2,645 additions and 353 deletions.
8 changes: 8 additions & 0 deletions app/Http/Controllers/BbsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,12 @@ public function detail(Bb $bb) {
//return response($s)->header('Content-Type', 'text/plain');
return view('detail', ['bb' => $bb]);
}

public function getElement(Request $request)
{
$dParam = $request->d;
// Dolore modi
$result = Bb::where('description', 'like', 'Dolore modi%')->count();
dd($result);
}
}
2 changes: 1 addition & 1 deletion app/Models/Bb.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Bb extends Model
{
//use HasFactory;
use HasFactory;

protected $fillable = ['title', 'description', 'price'];
//protected $guarded = ['ISBN']
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"nunomaduro/collision": "^7.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.0",
"spatie/laravel-ignition": "^2.0"
"spatie/laravel-ignition": "^2.0",
"vimeo/psalm": "^5.18"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 20264d3

Please sign in to comment.