This file contains hidden or 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
{{$nombre_del_proyecto}} //My Mega Proyecto | |
{{$php_version}} //8.3 | |
{{$laravel_version}} //11 |
This file contains hidden or 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\Requests; | |
class GenericIndexRequest extends Request | |
{ | |
public function rules(): array | |
{ | |
return [ | |
'limit' => 'bail|nullable|integer|min:5|max:100', |
This file contains hidden or 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\Helpers; | |
use DateTime; | |
use Illuminate\Database\Eloquent\Collection; | |
use Illuminate\Support\Facades\Crypt; | |
class General | |
{ |
This file contains hidden or 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
COMPOSE_PROJECT_NAME=Cool_Project | |
DB_PASSWORD=mypassword | |
DB_DATABASE=database_name | |
DB_USERNAME=user_name | |
DB_PORT=3306 | |
DB_PORT_FORWARD=3307 | |
#for implementantion | |
WEB_PORT=80 | |
SSL_PORT=443 |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Author: Reny Ramos <[email protected]> | |
# Licence: GPL-2 | |
# Description. | |
nombre=$(cat .env | grep COMPOSE_PROJECT_NAME | cut -d "=" -f 2) | |
####################################### | |
# FUNCTIONS | |
####################################### |
This file contains hidden or 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 | |
class Chronometer | |
{ | |
private $start = []; | |
private $end = []; | |
public function start(string $name = 'default'): void | |
{ | |
$this->start[$name] = microtime(true); |
This file contains hidden or 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"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
{{ $meta ?? '' }} | |
<title>{{ $title }}</title> | |
@yield('style') | |
{{ $style ?? '' }} |
This file contains hidden or 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; | |
use App\Traits\ModelFileManager; | |
use Illuminate\Database\Eloquent\Model; | |
class Company extends Model | |
{ | |
use ModelFileManager; |
This file contains hidden or 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
fetch(route,{ | |
method: 'get' | |
}).then(function(response){ | |
return response.text(); | |
}).then(function(res){ | |
console.log(res) | |
}).catch(function(err){ | |
}); |
This file contains hidden or 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\Middleware; | |
use Closure; | |
class CheckRole | |
{ | |
/** | |
* Handle the incoming request. |
NewerOlder