<?php
namespace App\Http\Controllers\Cabinet\Admin;
use App\Entity\Admin\Keywords;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class KeywordsController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*
* @param Keywords $keywords
* @return \Illuminate\Http\Response
*/
public function show(Keywords $keywords)
{
dd($keywords);
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
//
}
}
Вы пытаетесь сменить фреймворк, но при этом использовать подходы из старого.
Вы знаете что phpStorm автогенерирует геттеры/сеттеры?
{
"name": "ivan/backend",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"AppBundle\\": "src/AppBundle",
"ApiBundle\\": "src/ApiBundle",
"CommonBundle\\": "src/CommonBundle"
},
"classmap": [
"app/AppKernel.php",
"app/AppCache.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
},
"files": [
"vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php"
]
},
"require": {
"php": ">=5.5.9",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-migrations-bundle": "^1.0",
"doctrine/orm": "^2.5",
"friendsofsymfony/rest-bundle": "^2.2",
"friendsofsymfony/user-bundle": "~2.0",
"incenteev/composer-parameter-handler": "^2.0",
"jms/serializer-bundle": "^2.2",
"nelmio/cors-bundle": "^1.5",
"sensio/distribution-bundle": "^5.0.19",
"sensio/framework-extra-bundle": "^3.0.2",
"symfony/monolog-bundle": "^3.1.0",
"symfony/polyfill-apcu": "^1.0",
"symfony/swiftmailer-bundle": "^2.3.10",
"symfony/symfony": "3.3.*",
"twig/twig": "^1.0||^2.0"
},
"require-dev": {
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^3.0"
},
"scripts": {
"symfony-scripts": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-install-cmd": [
"@symfony-scripts"
],
"post-update-cmd": [
"@symfony-scripts"
]
},
"config": {
"sort-packages": true
},
"extra": {
"symfony-app-dir": "app",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "web",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": null
}
}
Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "FOSUserBundle" from namespace "FOS\UserBundle".
Did you forget a "use" statement for another namespace? in C:\Server\OpenServer\domains\chat.loc\backend\app\AppKernel.php:22
Stack trace:
#0 C:\Server\OpenServer\domains\chat.loc\backend\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php(448): AppKernel->registerBundles()
#1 C:\Server\OpenServer\domains\chat.loc\backend\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php(114): Symfony\Component\HttpKernel\Kernel->initializeBundles()
#2 C:\Server\OpenServer\domains\chat.loc\backend\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php(65): Symfony\Component\HttpKernel\Kernel->boot()
#3 C:\Server\OpenServer\domains\chat.loc\backend\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php(125): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\I
nput\ArgvInput), Ob in C:\Server\OpenServer\domains\chat.loc\backend\app\AppKernel.php on line 22
У меня используется laravel passport, поэтому Broadcast::routes(['middleware' => 'auth:api']); в BroadcastServiceProvider