laravel 相关问题

Laravel是一个免费的开源PHP Web框架,由Taylor Otwell创建,用于遵循模型 - 视图 - 控制器(MVC)架构模式并基于Symfony开发Web应用程序。 Laravel的源代码托管在GitHub上,并根据MIT许可条款获得许可。

找不到班级

我启动了一个网站,一个 YouTube 克隆,我试图进入频道/频道名称/编辑,但当我尝试这样做时,它说目标类 [App\Http\Controllers\Channel] 不存在。 我试过重制...

回答 1 投票 0

在 ProjectInstaller.php 第 69 行:mkdir 权限被拒绝

我正在window上处理laravel项目。当我运行命令时我已经安装了composer 终端上的作曲家 create-project laravel/laravel example-app 。 我有 在 ProjectInstaller.php 第 69 行:

回答 1 投票 0

如何在 Laravel 中获取给定订阅的第一个订单?

我在 Laravel 中有一个自定义计划订阅项目,我有以下模型: 订单:id、金额、plan_id 计划: ID、名称、价格 订阅:id、plan_id、starts_at、ends_at、subscriber_type、subscriber_id

回答 1 投票 0

使用 Laravel 和 PHP 数据的折线图未显示在 Chart.js 中

说明: 我正在开发一个 Laravel 项目,尝试使用 Chart.js 显示折线图。我正在从 Laravel 控制器获取数据并将其传递到视图,但是行字符...

回答 1 投票 0

在 laravel 10 jetstream 中,登录后它会将我重定向到仪表板,甚至通过 RouteServiceProvider.php 我写 public const HOME = 'home';

我正在尝试在登录后将用户发送到不同的页面。所以我使用 laravel jetstream 。但我不希望用户被发送到仪表板。所以在routeserviceprovider中我写了public const HOME = ...

回答 1 投票 0

Livewire 不重新渲染

我不知道我错过了什么,但我遵循了每一步,但它不会重新渲染视图。 这是我的 Livewire 组件类: 使用 Livewire\Component; HelloWorld 类扩展了 Component { 噗...

回答 3 投票 0

Nuxt 3 获取多部分表单数据上传不起作用

无论出于何种原因,我无法将图像上传到我的服务器。但当使用 RapidAPI 和完全相同的图像执行此操作时,它会起作用。我在这里做错了什么? 鹅毛笔编辑器代码: 无论出于何种原因,我无法将图像上传到我的服务器。但当使用 RapidAPI 和完全相同的图像执行此操作时,它会起作用。我在这里做错了什么? QuillEditor代码: <template> <QuillEditor :modules="modules" :toolbar="toolbar" theme="snow" toolbar="full" /> </template> <script> import { QuillEditor } from '@vueup/vue-quill' import '@vueup/vue-quill/dist/vue-quill.snow.css'; import ImageUploader from "quill-image-uploader"; const runtimeConfig = useRuntimeConfig(); const { fetch } = useSmartFetch(); export default { setup: () => { const toolbar = [ ['image', 'link'], ['emoji'] ]; const modules = { name: "imageUploader", module: ImageUploader, options: { upload: (file) => { return new Promise(async (resolve, reject) => { const formData = new FormData() formData.append('image', file); console.log(file) console.log(formData) const authStore = useAuthStore() const response = await $fetch(runtimeConfig.public.api.image.upload, { method: 'POST', body: formData, headers: { 'Authorization': 'Bearer ' + authStore.accessToken, 'Content-Type': 'multipart/form-data' } }) }); }, }, }; return { toolbar, modules }; }, components: { QuillEditor, }, }; </script> 当我检查我的请求时,我已将不记名令牌设置为进行身份验证(否则我会得到 401 而不是 422)以及 Content-Type: multipart/form-data。甚至我的有效负载也包含表单数据。这是我的有效负载的开始: -----------------------------118964521239883964394155378140 Content-Disposition: form-data; name="image"; filename="1705385217523.jpg" Content-Type: image/jpeg ... ... ... 但是,在 Laravel Telescope 中我的有效负载是空的: 使用 RapidAPI 执行完全相同的操作时: 一切正常,没有任何问题。此外,还设置了有效负载: 怎么会这样?我很确定我的后端可以工作,并且已经过测试。但我也确信我正确地执行了请求。 有人可以帮助我吗? 亲切的问候 更新(添加了开发控制台的图像): 204 选项请求: 422 帖子请求: 使用 FormData 时,不应显式设置 Content-Type 标头。这将阻止您的浏览器使用用于分隔表单字段的边界表达式设置 Content-Type 标头。 更多信息可以在MDN上找到。 因此,更改您的 fetch 请求: const response = await $fetch(runtimeConfig.public.api.image.upload, { method: 'POST', body: formData, headers: { 'Authorization': 'Bearer ' + authStore.accessToken, } })

回答 1 投票 0

如何在Vite JS中使用jquery-confirm

我想在我的 Laravel Vite 中导入 jquery-confirm。这是一个 jquery 插件。当我这样使用它时 <p>我想在我的 Laravel Vite 中导入 <a href="https://craftpip.github.io/jquery-confirm/" rel="nofollow noreferrer">jquery-confirm</a>。这是一个 jquery 插件。当我这样使用它时</p> <pre><code>&lt;script src=&#34;https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.4/jquery-confirm.min.js&#34; type=&#34;module&#34;&gt;&lt;/script&gt; </code></pre> <pre><code>&lt;script type=&#34;module&#34;&gt; $(function() { $.alert({ title: &#39;Alert!&#39;, content: &#39;Simple alert!&#39;, }); }); &lt;/script&gt; </code></pre> <p>它运行良好,但是当我想从 vite 导入它时,它返回错误: 未捕获的类型错误: $.alert 不是函数</p> <p>我的app.js:</p> <pre><code>import jQuery from &#39;jquery&#39;; window.jQuery = window.$ = jQuery; require(&#34;jquery-confirm/dist/jquery-confirm.min.js&#34;) </code></pre> <p>我尝试了所有这些方法:</p> <pre><code>require(&#34;jquery-confirm/dist/jquery-confirm.min.js&#34;) require(&#34;jquery-confirm&#34;); await import(&#34;jquery-confirm&#34;); import(&#34;jquery-confirm&#34;); </code></pre> </question> <answer tick="false" vote="0"> <p>如果您使用 NPM 安装 <pre><code>jquery-confirm</code></pre>,那么您应该能够导入它:</p> <pre><code>npm install jquery-confirm </code></pre> <p>然后:</p> <pre><code>import jquery from &#34;jquery&#34;; window.jQuery = window.$ = jquery; import jQueryConfirm from &#34;jquery-confirm&#34;; window.jQuery.confirm = window.$.confirm = jQueryConfirm; </code></pre> </answer> </body></html>

回答 0 投票 0

如何修复“目标类不存在”? [重复]

如何修复 Laravel 8 中的“目标类不存在” 我已经应用了所有这三个修复程序,但仍然收到错误: 手动添加命名空间,以便您可以像在 Larav 中一样使用它......

回答 5 投票 0

WAMP 服务器和 Laravel 公共链接到 NAS 上的存储

我几天来一直在尝试弄清楚如何使 Laravel 公共文件夹中的符号存储链接访问我的 NAS 上 WAMPServer 下的文件。 我有一个单独运行的 VueJS 前端...

回答 1 投票 0

在laravel中使用JWT令牌查找用户ID

在我的 API 中,用户注册后,将使用以下代码创建一个令牌: $token = JWTAuth::fromUser($user); 当我使用 dd($token) 时,返回: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.

回答 3 投票 0

使用 laravel 11 通过一个请求插入两个相关表

我使用 Angular 作为前端,并且我想使用 Laravel 执行 CRUD 我有两个表用户和学生,学生表有一个引用用户表的外键。 我想插入...

回答 1 投票 0

此操作未经授权。升级 Laravel 时

我正在学习 Laravel,练习做一个加载文档的项目(杂项)。 我已经开始执行更新文档的过程了。当我单击按钮时,我收到消息“THIS A...

回答 1 投票 0

使用 ngrok 而不是 localhost 时,Axios 响应返回 HTML 代码块(反应)

本地主机工作正常。然而,当我使用 ngrok 作为我的 VITE_REACT_APP_BASE_URL 时,我得到了 html 代码块的响应。我尝试使用 ngrok 链接的 http 和 https,但仍然得到相同的结果...

回答 1 投票 0

如果用户未从 Livewire 安装方法登录,为什么重定向到其他页面会引发错误?

在 laravel/livewire 网站上,如果用户未使用我将显示的消息登录,我会尝试重定向到其他页面 sweetalert 库,例如 在 laravel/livewire 网站上,如果用户未使用我将显示的消息登录,我会尝试重定向到其他页面 sweetalert 库,比如 <?php namespace App\Livewire\Admin; use App\Library\Services\Interfaces\LoggedUserInterface; use App\Models\User; use Illuminate\Http\Request; use Livewire\Component; class MyComponent extends Component { public int $taskId; protected LoggedUserInterface $loggedUserService; public function boot(LoggedUserInterface $loggedUserService) { $this->loggedUserService = $loggedUserService; } public function mount(Request $request, int $taskId) { if(!$this->loggedUserService->checkUserLogged()) { // my service request()->session()->flash('error', 'You need login to enter this page !'); return $this->redirect(route('home'), navigate: true); } $this->taskId = $taskId; ... } public function render(Request $request) { 但是我得到了错误: Object of class Livewire\Features\SupportRedirects\Redirector could not be converted to int 为什么我收到此错误以及如何修复它? "laravel/framework": "^10.48.4", "livewire/livewire": "^3.4.9", 错误详情: 完整的错误日志是: [2024-04-25 13:09:59] local.ERROR: Object of class Livewire\Features\SupportRedirects\Redirector could not be converted to int {"view":{"view":"/Projects/MyApp/resources/views/livewire/test.blade.php","data":[]},"exception":"[object] (Spatie\\LaravelIgnition\\Exceptions\\ViewException(code: 0): Object of class Livewire\\Features\\SupportRedirects\\Redirector could not be converted to int at /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1244) [stacktrace] #0 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError() #1 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1244): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}() #2 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(45): Illuminate\\Foundation\\Application->abort() #3 /Projects/MyApp/vendor/livewire/livewire/src/Features/SupportRedirects/SupportRedirects.php(60): abort() #4 /Projects/MyApp/vendor/livewire/livewire/src/ComponentHook.php(63): Livewire\\Features\\SupportRedirects\\SupportRedirects->dehydrate() #5 /Projects/MyApp/vendor/livewire/livewire/src/ComponentHookRegistry.php(110): Livewire\\ComponentHook->callDehydrate() #6 /Projects/MyApp/vendor/livewire/livewire/src/ComponentHookRegistry.php(73): Livewire\\ComponentHookRegistry::Livewire\\{closure}() #7 /Projects/MyApp/vendor/livewire/livewire/src/EventBus.php(60): Livewire\\ComponentHookRegistry::Livewire\\{closure}() #8 /Projects/MyApp/vendor/livewire/livewire/src/helpers.php(98): Livewire\\EventBus->trigger() #9 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(57): Livewire\\trigger() #10 /Projects/MyApp/vendor/livewire/livewire/src/LivewireManager.php(73): Livewire\\Mechanisms\\HandleComponents\\HandleComponents->mount() #11 /Projects/MyApp/resources/views/livewire/test.blade.php(32): Livewire\\LivewireManager->mount() #12 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(37): include('...') #13 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(38): App\\Livewire\\Test->Livewire\\Mechanisms\\ExtendBlade\\{closure}() #14 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Livewire\\Mechanisms\\ExtendBlade\\ExtendedCompilerEngine->evaluatePath() #15 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(16): Illuminate\\View\\Engines\\CompilerEngine->get() #16 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/View/View.php(207): Livewire\\Mechanisms\\ExtendBlade\\ExtendedCompilerEngine->get() #17 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/View/View.php(190): Illuminate\\View\\View->getContents() #18 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/View/View.php(159): Illuminate\\View\\View->renderContents() #19 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(240): Illuminate\\View\\View->render() #20 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(284): Livewire\\Mechanisms\\HandleComponents\\HandleComponents->Livewire\\Mechanisms\\HandleComponents\\{closure}() #21 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(232): Livewire\\Mechanisms\\HandleComponents\\HandleComponents->trackInRenderStack() #22 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(53): Livewire\\Mechanisms\\HandleComponents\\HandleComponents->render() #23 /Projects/MyApp/vendor/livewire/livewire/src/LivewireManager.php(73): Livewire\\Mechanisms\\HandleComponents\\HandleComponents->mount() #24 /Projects/MyApp/vendor/livewire/livewire/src/Features/SupportPageComponents/HandlesPageComponents.php(17): Livewire\\LivewireManager->mount() #25 /Projects/MyApp/vendor/livewire/livewire/src/Features/SupportPageComponents/SupportPageComponents.php(118): Livewire\\Component->Livewire\\Features\\SupportPageComponents\\{closure}() #26 /Projects/MyApp/vendor/livewire/livewire/src/Features/SupportPageComponents/HandlesPageComponents.php(14): Livewire\\Features\\SupportPageComponents\\SupportPageComponents::interceptTheRenderOfTheComponentAndRetreiveTheLayoutConfiguration() #27 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(46): Livewire\\Component->__invoke() #28 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch() #29 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController() #30 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run() #31 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}() #32 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #33 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle() #34 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #35 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle() #36 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #37 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle() #38 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #39 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest() #40 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle() #41 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #42 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle() #43 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #44 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle() #45 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #46 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then() #47 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack() #48 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute() #49 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute() #50 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch() #51 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}() #52 /Projects/MyApp/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #53 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle() #54 /Projects/MyApp/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(66): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #55 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle() #56 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #57 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle() #58 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle() #59 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #60 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle() #61 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle() #62 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #63 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle() #64 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #65 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle() #66 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #67 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle() #68 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #69 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle() #70 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #71 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then() #72 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter() #73 /Projects/MyApp/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle() #74 {main} [previous exception] [object] (ErrorException(code: 0): Object of class Livewire\\Features\\SupportRedirects\\Redirector could not be converted to int at /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1244) [stacktrace] #0 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError() #1 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1244): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}() #2 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(45): Illuminate\\Foundation\\Application->abort() #3 /Projects/MyApp/vendor/livewire/livewire/src/Features/SupportRedirects/SupportRedirects.php(60): abort() #4 /Projects/MyApp/vendor/livewire/livewire/src/ComponentHook.php(63): Livewire\\Features\\SupportRedirects\\SupportRedirects->dehydrate() #5 /Projects/MyApp/vendor/livewire/livewire/src/ComponentHookRegistry.php(110): Livewire\\ComponentHook->callDehydrate() #6 /Projects/MyApp/vendor/livewire/livewire/src/ComponentHookRegistry.php(73): Livewire\\ComponentHookRegistry::Livewire\\{closure}() #7 /Projects/MyApp/vendor/livewire/livewire/src/EventBus.php(60): Livewire\\ComponentHookRegistry::Livewire\\{closure}() #8 /Projects/MyApp/vendor/livewire/livewire/src/helpers.php(98): Livewire\\EventBus->trigger() #9 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(57): Livewire\\trigger() #10 /Projects/MyApp/vendor/livewire/livewire/src/LivewireManager.php(73): Livewire\\Mechanisms\\HandleComponents\\HandleComponents->mount() #11 /Projects/MyApp/storage/framework/views/b798dad3b55153572acc9fbddd03b634.php(32): Livewire\\LivewireManager->mount() #12 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(37): include('...') #13 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(38): App\\Livewire\\Test->Livewire\\Mechanisms\\ExtendBlade\\{closure}() #14 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Livewire\\Mechanisms\\ExtendBlade\\ExtendedCompilerEngine->evaluatePath() #15 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php(16): Illuminate\\View\\Engines\\CompilerEngine->get() #16 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/View/View.php(207): Livewire\\Mechanisms\\ExtendBlade\\ExtendedCompilerEngine->get() #17 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/View/View.php(190): Illuminate\\View\\View->getContents() #18 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/View/View.php(159): Illuminate\\View\\View->renderContents() #19 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(240): Illuminate\\View\\View->render() #20 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(284): Livewire\\Mechanisms\\HandleComponents\\HandleComponents->Livewire\\Mechanisms\\HandleComponents\\{closure}() #21 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(232): Livewire\\Mechanisms\\HandleComponents\\HandleComponents->trackInRenderStack() #22 /Projects/MyApp/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(53): Livewire\\Mechanisms\\HandleComponents\\HandleComponents->render() #23 /Projects/MyApp/vendor/livewire/livewire/src/LivewireManager.php(73): Livewire\\Mechanisms\\HandleComponents\\HandleComponents->mount() #24 /Projects/MyApp/vendor/livewire/livewire/src/Features/SupportPageComponents/HandlesPageComponents.php(17): Livewire\\LivewireManager->mount() #25 /Projects/MyApp/vendor/livewire/livewire/src/Features/SupportPageComponents/SupportPageComponents.php(118): Livewire\\Component->Livewire\\Features\\SupportPageComponents\\{closure}() #26 /Projects/MyApp/vendor/livewire/livewire/src/Features/SupportPageComponents/HandlesPageComponents.php(14): Livewire\\Features\\SupportPageComponents\\SupportPageComponents::interceptTheRenderOfTheComponentAndRetreiveTheLayoutConfiguration() #27 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(46): Livewire\\Component->__invoke() #28 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch() #29 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController() #30 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run() #31 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}() #32 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #33 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle() #34 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #35 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle() #36 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #37 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle() #38 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #39 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest() #40 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle() #41 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #42 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle() #43 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #44 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle() #45 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #46 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then() #47 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack() #48 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute() #49 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute() #50 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch() #51 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}() #52 /Projects/MyApp/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #53 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle() #54 /Projects/MyApp/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(66): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #55 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle() #56 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #57 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle() #58 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle() #59 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #60 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle() #61 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle() #62 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #63 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle() #64 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #65 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle() #66 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #67 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle() #68 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #69 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle() #70 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #71 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then() #72 /Projects/MyApp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter() #73 /Projects/MyApp/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle() #74 {main} "} a)我所关注的我使用的 MyComponent 根本没有被引用。 b)视图文件相当大,但是当我从中删除所有内容后,我得到了相同的错误 c) 是否有一些在线 Livewire Playground 可以在线重复错误? 提前致谢! 使用 Livewire 重定向必须在浏览器端执行。在 Livewire 类中 $this->redirect 是自动化此过程的助手。 代替: return $this->redirect(route('home'), navigate: true); 使用 $this->redirect(route('home'), navigate: true);

回答 1 投票 0

PHP 致命错误,错误提示存在重复的类,但实际上并不存在

PHP 致命错误:无法声明类 CreateUsersTable,因为该名称已在 C:\Users\joshu\laraveljobs_app\database\migration 中使用

回答 0 投票 0

将 XML 字符串转换为对象时出错

这是我的代码: $响应 = Http::withHeaders([ “内容类型”=>“应用程序/xml”, “用户代理”=>“失眠/2023.5.6”, ...

回答 1 投票 0

变量没有改变(Laravel 10)

我有一个视图,其中有一个侧边栏,我可以在其中选择不同的选项并动态更改组件 我的问题是,当我第一次单击其中一个选项时,它会更改值...

回答 1 投票 0

Laravel 符号链接到存储的符号链接在生产中不起作用 - 共享托管

我已将 Laravel 10 部署到 Siteground。我将 Laravel 的 public 文件夹的内容直接放在 public_html 中,并在 public_html 中为 Laravel 的其余部分创建了一个单独的文件夹

回答 2 投票 0

UML 类图中的循环关系

我想知道在这种情况下是否可以避免循环关系。 解释 : posts 表有一个外键 city_id 来指定帖子(产品)的位置,并且用户还有一个 cit...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.