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
<div class="max-w-7xl mx-auto"> | |
<h2>Front Loja Experts Store</h2> | |
<div class="grid grid-cols-4 gap-4"> | |
<a href="#" class="w-[290px] mb-10 shadow hover:shadow-xl"> | |
<img | |
src="assets/no-photo.jpg" | |
alt="Imagem Produto Sem Foto" | |
class="w-[290px] h-[170px] rounded-xl" | |
/> |
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 Code\App\Repository; | |
use Code\App\Model\Usuario; | |
use Code\App\Model\UsuarioPerfil; | |
use Code\Framework\Database\Model\Model; | |
use Code\Framework\Database\Repository\RepositoryInterface; | |
class UsuarioRepository implements RepositoryInterface |
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 | |
//Coloque na classe service... | |
protected function normalizarUploadData($arquivos): array | |
{ | |
$arquivosNormalizados = []; | |
for ($i = 0; $i < count($arquivos['name']); $i++) { | |
$arquivosNormalizados[$i]['name'] = $arquivos['name'][$i]; | |
$arquivosNormalizados[$i]["full_path"] = $arquivos['full_path'][$i]; |
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 | |
public function selectCustom(?array $filtros = [], ?string $colunas = '*', ?array $ordernacao = [], bool $linha = false): array|object|bool | |
{ | |
$query = 'SELECT ' . $colunas . ' FROM ' . $this->tabela; | |
$clausulas = ''; | |
foreach ($filtros as $filtro) { |
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 | |
if ($request->user() && !$request->user()->subscribed('default')) { | |
return redirect()->route('subscriptions.checkout'); | |
} |
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 Code\Framework\HTTP; | |
class Request | |
{ | |
public function __construct( | |
private array $get = [], | |
private array $post = [], | |
private array $server = [] |
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 | |
//Order Items Migration Fields | |
$table->foreignId('order_id') | |
->constrained() | |
->cascadeOnDelete(); | |
$table->foreignId('product_id') | |
->constrained() |
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 | |
Tables\Columns\TextColumn::make('price')->money('BRL'), | |
Tables\Columns\TextColumn::make('created_at')->date('d/m/Y H:i:s') |
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
$table->foreignId('tenant_id')->nullable()->constrained(); |
NewerOlder