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 App\Traits\Nova; | |
use Illuminate\Database\Eloquent\Builder; | |
use Laravel\Nova\Http\Controllers\AttachableController; | |
use Laravel\Nova\Http\Requests\NovaRequest; | |
trait NoDuplicateRelations | |
{ |
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 | |
/** | |
* The column by which to sort as default | |
* | |
* @var string | |
*/ | |
public static string $defaultSort = ''; | |
/** |
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 // Functions | |
if (!function_exists('decodeNovaFilter')) { | |
/** | |
* Decode the filter string from base64 encoding. | |
* | |
* @param string $filtersRequestString | |
* @return array | |
*/ | |
function decodeNovaFilter(string $filtersRequestString): array | |
{ |
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
/.idea | |
/.vscode | |
/.vs | |
/node_modules | |
/vendor |
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
#Allow w3c validator | |
Allow from 128.30.52.73 | |
Allow from 128.30.52.96 | |
Allow from .w3.org | |
#Allow PayPal | |
Allow from 151.101.129.21 | |
Allow from .paypal.com |
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 | |
add_filter('language_attributes', function () { | |
return 'lang="'.explode('-', get_bloginfo('language'))[0].'"'; | |
}, 10, 2); |
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 App\Console\Commands; | |
use Illuminate\Foundation\Console\DownCommand as Command; | |
use Illuminate\Foundation\Exceptions\RegisterErrorViewPaths; | |
class DownCommand extends Command | |
{ | |
/** |
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
// `nano ~/.composer/auth.json` | |
// | |
// Basic- and OAuth: | |
{ | |
"http-basic": { | |
"github.com": { | |
"username": "[GITHUB-USERNAME]", | |
"password": "ghp_[PERSONAL-TOKEN]" | |
}, | |
"nova.laravel.com": { |
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
/opt/plesk/php/8.1/bin/php artisan config:clear | |
/opt/plesk/php/8.1/bin/php /usr/lib/plesk-9.0/composer.phar install --optimize-autoloader --no-dev | |
/opt/plesk/php/8.1/bin/php artisan migrate --force | |
/opt/plesk/php/8.1/bin/php artisan view:clear | |
/opt/plesk/php/8.1/bin/php artisan optimize |
OlderNewer