- PHP Intelephense -> with premium license for better autocompletion and refactoring
- Project Manager -> to allow for easy switching between projects
- Better PHPUnit -> to easily execute tests
- Eslint -> JS validation/linting
- EditorConfig -> editorconfigfile support
- Laravel Extra Intellisense -> Extra Laravel functionality
- Laravel goto view
- npm Intellisense
- Partial diff
- Path intellisense
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
import type { Meta, StoryObj } from '@storybook/vue3'; | |
import Component from './ReproComponent.vue'; | |
const meta: Meta<typeof Component> = { | |
component: Component, | |
render: (args, { argTypes }) => ({ | |
components: { Component }, | |
props: Object.keys(argTypes), | |
template: ` |
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 | |
declare(strict_types=1); | |
namespace App\Providers; | |
// snip | |
use Dompdf\Dompdf; | |
// snip |
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
server { | |
listen *:80; | |
server_name ~^(?<subdomain>.+\.)?(?<domain>.+).paqt.dev$; | |
set $baseRoot "/var/www/projects/${domain}"; | |
set $publicFolder ""; | |
if (-d "${baseRoot}/public_html") { | |
set $publicFolder "public_html"; | |
} |
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 | |
declare(strict_types=1); | |
use Illuminate\Support\Facades\App; | |
use Illuminate\Support\Facades\Cache; | |
use Illuminate\Support\Facades\Route; | |
// Localization |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
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
server { | |
listen *:80; | |
server_name playground.big-uploads.localtest.me; | |
root /var/www/projects/playground/public_html/; | |
include conf.d/dockerhero/core/partials/logging.conf; | |
client_max_body_size 64m; |
These are the reconfiguration instructions to make Laravel use a public_html
folder instead of a public
folder.
-
Rename the
public
folder topublic_html
-
Create a new file in de
./app
directory calledBootstrapper.php
with the followign contents:
<?php
namespace App;
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
#!/bin/bash | |
#get all containers | |
containers=`docker ps -a --format '{{.Names}}'` | |
hostFileBegin="## DOCKERHERO HOSTS BLOCK START ##\n" | |
hostFileEnd="## DOCKERHERO HOSTS BLOCK END ##\n" | |
hostFile=$hostFileBegin | |
#find the ip belonging to container |
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
## Simply add this function to your .bash_aliases and run ideHelpers in the root of your project. | |
ideHelpers() { | |
project=`basename $PWD` | |
docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && ./artisan ide-helper:generate" | |
docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && ./artisan ide-helper:meta" | |
#due to atom-ide-ui and ide-php, this file is now unwanted - so let's delete it instead. | |
#docker exec -i --user=dockerhero dockerhero_workspace bash -c "cd /var/www/projects/$project && ./artisan ide-helper:models -n" |