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 | |
define('VENDOR_PLUGIN_TEMPLATE_PATH', plugin_dir_path( __FILE__ ).'/templates/'); | |
function override_template( $template, $template_name, $template_path ) { | |
$originTemplate = $template_path.$template_name; | |
$pluginTemplate = VENDOR_PLUGIN_TEMPLATE_PATH.$originTemplate; | |
if(file_exists($pluginTemplate)) { | |
$template = $pluginTemplate; |
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
/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 |
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 |
NewerOlder