30 lines
633 B
PHP
Raw Normal View History

2017-11-30 11:47:56 +03:00
<?php
namespace App\Http\Controllers\Common;
use App\Http\Controllers\Controller;
2019-04-04 17:54:03 +03:00
use Module;
2017-11-30 11:47:56 +03:00
class Import extends Controller
{
/**
* Show the form for creating a new resource.
*
* @param $group
* @param $type
* @return Response
*/
public function create($group, $type)
{
$path = $group . '/' . $type;
2019-04-04 17:54:03 +03:00
if (Module::findByAlias($group) instanceof \Nwidart\Modules\Module) {
$namespace = $group . '::';
} else {
$namespace = '';
}
return view('common.import.create', compact('group', 'type', 'path', 'namespace'));
2017-11-30 11:47:56 +03:00
}
}