This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Factories\HasFactory; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Relations\HasMany; | |
use Illuminate\Support\Str; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Livewire; | |
use App\Services\PostService; | |
use Illuminate\Contracts\Container\BindingResolutionException; | |
use Illuminate\Contracts\View\View; | |
use Livewire\Component; | |
final class SearchPosts extends Component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test with worker</title> | |
<script defer src="main.js"></script> | |
</head> | |
<body> | |
<h1>This is the test with worker!</h1> | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Show Stores, that have products with Christmas, Winter Tags | |
SELECT Store.* FROM Store | |
LEFT JOIN Product ON Store.id = Product.store_id | |
LEFT JOIN TagConnect ON Product.id = TagConnect.product_id | |
LEFT JOIN Tag ON Tag.id = TagConnect.tag_id | |
WHERE Tag.tag_name in ('Christmas', 'Winter') | |
GROUP BY Store.id | |
2) Show Users, that never bought Product from Store with id == 5 |