PHP code example of aimeos / aimeos-laravel
1. Go to this page and download the library: Download aimeos/aimeos-laravel 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/ */
aimeos / aimeos-laravel example snippets
'connections' => [
'mysql' => [
// ...
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
// ...
]
]
Route::middleware('auth')->group(function () {
Route::get('/profile/me', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile/me', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile/me', [ProfileController::class, 'destroy'])->name('profile.destroy');
});
public function boot()
{
// Keep the lines before
\Illuminate\Support\Facades\Gate::define('admin', function($user, $class, $roles) {
if( isset( $user->superuser ) && $user->superuser ) {
return true;
}
return app( '\Aimeos\Shop\Base\Support' )->checkUserGroup( $user, $roles );
});
}
Route::group(['middleware' => ['web']], function () {
Route::get('/', '\Aimeos\Shop\Controller\CatalogController@homeAction')->name('aimeos_home');
});
'madmin' => [
'cache' => [
'manager' => [
'name' => 'None',
],
],
],
json
"prefer-stable": true,
"minimum-stability": "dev",
" "scripts": {
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan vendor:publish --tag=public --ansi",
"\\Aimeos\\Shop\\Composer::join"
],
...
}
bash
php artisan vendor:publish --tag=config --tag=public
php artisan migrate
php artisan aimeos:setup --option=setup/default/demo:1
bash
php artisan aimeos:account --super <email>
php artisan serve