Comments 1SS started the conversationSeptember 30, 2020 at 10:47amhello there, I want to add a new page on back-end / admin side. I have to use which route.php and controller, could you explain me please? thanks. 2,557Support repliedSeptember 30, 2020 at 11:15amHi,You can create a new plugin for it.Start with command: php artisan cms:plugin:create [plugin name]Ex: In platform/plugins/your-plugin/src/Http/Controllers/YourPluginController.php public function getTest() { return view('core/setting::test'); } Add your route in platform/plugins/your-plugin/routes/web.phpAdd your view in platform/plugins/your-plugin/resources/views/test.blade.php @extends('core/base::layouts.master') @section('content') <h1>Hello</h1> @stopOr you can add route, controller, view as normal Laravel project. Just need to set layout to core/base::layouts.master1 Like SS replied privately 2,557Support repliedSeptember 30, 2020 at 2:48pmHi,Change Route::get('', 'MypluginController@getTest')->parameters(['' => 'randevu']);To Route::get('test', 'MypluginController@getTest');You can't set Route::get('')...for that route, it has conflict with Route::resource('')...Then you can access to http://your-domain.dev/admin/myplugin/test1 Like SS replied privately 2,557Support repliedOctober 1, 2020 at 3:21amHi,You need to add routes for theme in platform/themes/[your-theme]/routes/web.phpAnd controller in platform/themes/[your-theme]/src/Http/Controllers/YourThemeController.php1 Like SS replied privately 2,557Support repliedOctober 1, 2020 at 8:25amI can't see this screenshot http://prntscr.com/ur3363Need to insert extra data into table language_meta and slugs.1 Like SS replied privately Sign in to reply ...
hello there,
I want to add a new page on back-end / admin side.
I have to use which route.php and controller, could you explain me please?
thanks.
Hi,
You can create a new plugin for it.
Start with command: php artisan cms:plugin:create [plugin name]
Ex: In platform/plugins/your-plugin/src/Http/Controllers/YourPluginController.php
Add your route in platform/plugins/your-plugin/routes/web.php
Add your view in platform/plugins/your-plugin/resources/views/test.blade.php
Or you can add route, controller, view as normal Laravel project. Just need to set layout to core/base::layouts.master
Hi,
Change
To
You can't set
for that route, it has conflict with
Then you can access to http://your-domain.dev/admin/myplugin/test
Hi,
You need to add routes for theme in platform/themes/[your-theme]/routes/web.php
And controller in platform/themes/[your-theme]/src/Http/Controllers/YourThemeController.php
I can't see this screenshot http://prntscr.com/ur3363
Need to insert extra data into table language_meta and slugs.