DeleteAction::make()->hidden(fn ($record) => $record->childRelationship()->exists())
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 | |
use Valet\Drivers\LaravelValetDriver; | |
class LocalValetDriver extends LaravelValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
*/ | |
public function serves(string $sitePath, string $siteName, string $uri): bool |
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
region | distric_name | ||
---|---|---|---|
Ashanti Region | Adansi Asokwa | ||
Ashanti Region | Adansi North | ||
Ashanti Region | Adansi South | ||
Ashanti Region | Afigya Kwabre North | ||
Ashanti Region | Afigya Kwabre South | ||
Ashanti Region | Ahafo Ano North Municipal | ||
Ashanti Region | Ahafo Ano South East | ||
Ashanti Region | Ahafo Ano South West | ||
Ashanti Region | Akrofuom |
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
name | ||
---|---|---|
Ashanti Region | ||
Bono Region | ||
Bono East Region | ||
Ahafo Region | ||
Central Region | ||
East Region | ||
Greater Accra Region | ||
Northern Region | ||
Savannah Region |
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 | |
$this->validate( | |
$request,[ | |
'year' => 'integer|required|digits:4|min:1900|max:' . (date('Y') - 1), | |
] | |
); | |
?> |
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
<VirtualHost *:80> | |
Protocols h2 h2c http/1.1 | |
ServerName vuejs.project-url.com | |
ServerAdmin webmaster@vuejs.project-url.com | |
DocumentRoot /var/www/html/projec-root-directory/dist/ | |
<Directory "/var/www/html/projec-root-directory/dist/"> | |
AllowOverride All | |
Options FollowSymLinks Multiviews Indexes | |
Require all granted |
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
const actions = ()=>{ | |
const functionA = ()=>{/*do sth*/} | |
const functionB = ()=>{/*do sth*/} | |
const functionC = ()=>{/*send log*/} | |
return new Map([ | |
[/^guest_[1-4]$/,functionA], | |
[/^guest_5$/,functionB], | |
[/^guest_.*$/,functionC], | |
//... | |
]) |
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
const actions = ()=>{ | |
const functionA = ()=>{/*do sth*/} | |
const functionB = ()=>{/*do sth*/} | |
return new Map([ | |
[/^guest_[1-4]$/,functionA], | |
[/^guest_5$/,functionB], | |
//... | |
]) | |
} |
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
const actions = ()=>{ | |
const functionA = ()=>{/*do sth*/} | |
const functionB = ()=>{/*do sth*/} | |
return new Map([ | |
[{identity:'guest',status:1},functionA], | |
[{identity:'guest',status:2},functionA], | |
[{identity:'guest',status:3},functionA], | |
[{identity:'guest',status:4},functionA], | |
[{identity:'guest',status:5},functionB], | |
//... |
NewerOlder