PHP code example of norman-huth / muetze-site

1. Go to this page and download the library: Download norman-huth/muetze-site library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

norman-huth / muetze-site example snippets

 bash
php artisan make:migration:pivot User Role
 bash
php artisan make:migration:pivot User Role --id1=uui --id2=foo_bar
 bash
php artisan make:bundle Foo
 bash
php artisan vendor:publish --provider="NormanHuth\Muetze\SiteServiceProvider" --tag="config"
 php
    'make-bundle' => [
        'nova-resource' => false,
        'migration'      => true,
        'policy'         => true,
        'resource'       => true,
        'controller'     => false,
        'api-controller' => false,

        'namespaces' => [
            'controller'     => 'Web/',
            'api-controller' => 'Api/',
        ],
    ],
 php


namespace App\Models;

use NormanHuth\Muetze\Traits\EncryptsAttributes;
use Illuminate\Database\Eloquent\Model;

class UserData extends Model
{
    use EncryptsAttributes;

    /**
     * The attributes that are encrypted.
     *
     * @var array
     */
    protected array $encrypts = [
        'access_token',
        'address',
    ];
}
 bash
php artisan vendor:publish --provider="NormanHuth\Muetze\SiteServiceProvider" --tag="laravel-stubs"
 bash
php artisan vendor:publish --provider="NormanHuth\Muetze\SiteServiceProvider" --tag="nova-stubs"
 bash
php artisan vendor:publish --provider="NormanHuth\Muetze\SiteServiceProvider" --tag="translations"