PHP code example of maurouberti / blog

1. Go to this page and download the library: Download maurouberti/blog 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/ */

    

maurouberti / blog example snippets


php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider"

composer dump-autoload

php artisan module

php artisan module:make {nome_modulo}

php artisan serve

php artisan module:make-migration create_{nome_tabela}_table {none_modulo}

php artisan module:migrate {nome_modulo}

php artisan module:make-model {nome_model} {nome_modulo}

php artisan module:make-seed {nome_seed} {nome_modulo}

$this->call("{nome_seed}");

php artisan module:seed {nome_modulo}

php artisan module:seed --class={nome_seed} {nome_modulo}

php artisan module:make-controller {nome_controller} {nome_modulo}

Modules/{nome_modulo}/Http/routes.php

php artisan module:install maurouberti/laravel_modules --type=github

php artisan module:install maurouberti/blog

php artisan module:migrate {nome_modulo}
php artisan module:seed {nome_modulo}

php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider"

composer dump-autoload
php artisan module:make Blog
echo "create database laravel_modules;" | mysql -u root -p

php artisan module:make-migration create_posts_table Blog
php artisan module:migrate Blog
php artisan module:make-model Post Blog
php artisan module:make-seed Posts Blog
php artisan module:seed Blog
php artisan module:make-controller PostsController Blog