PHP code example of simonmarcellinden / databasesettings

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

    

simonmarcellinden / databasesettings example snippets


	$app->register(\SimonMarcelLinden\DatabaseSettings\DatabaseSettingsProvider::class);
 
$ php artisan migrate:fresh
 
$ php artisan db:seed --class=SimonMarcelLinden\DatabaseSettings\Database\Seeders\SettingSeeder

	$router->group(['prefix' => 'image'], function () use ($router) {
		$router->get('/{id}', 'ImageController@show');
		$router->post('/upload', 'ImageController@upload');
		$router->delete('/delete/{id}', 'ImageController@delete');
	});