PHP code example of mattmangoni / nova-blogify-tool

1. Go to this page and download the library: Download mattmangoni/nova-blogify-tool 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/ */

    

mattmangoni / nova-blogify-tool example snippets


// in app/Providers/NovaServiceProvder.php

// ...
public function tools()
{
    return [
        // ...

        new \Mattmangoni\NovaBlogifyTool\NovaBlogifyTool()
}


use Mattmangoni\NovaBlogifyTool\Models\Post;
use Mattmangoni\NovaBlogifyTool\Models\Category;

Route::get('/', function () {
    return view('welcome');
});

Route::get('/posts', function () {
    return Post::all();
});

Route::get('/categories', function () {
    return Category::all();
});