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 Valet\Drivers\Custom; | |
use Valet\Drivers\LaravelValetDriver; | |
class OctobercmsValetDriver extends LaravelValetDriver { | |
public function serves(string $sitePath, string $siteName, string $uri): bool | |
{ | |
return file_exists($sitePath . '/bootstrap/autoload.php') && file_exists($sitePath . '/modules/system/console/OctoberAbout.php'); |
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 Inetis\Demo\Controllers; | |
use BackendMenu; | |
use Backend\Classes\Controller; | |
use Carbon\Carbon; | |
use Illuminate\Support\Facades\Response; | |
use Inetis\Demo\Models\Event; | |
use Redirect; | |
class Events extends Controller |
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
<# Goes in Documents\PowerShell\profile.ps1 #> | |
<# usage: CompareDir -path1 path\to\folder\1 -path2 path\to\folder\2 #> | |
function Get-Files { | |
param ( | |
[string]$path, | |
[string[]]$exclude | |
) | |