My Form:
Laravel Storing data to Database:
public function store(){
$post=new Post;
$post->title=request('title');
$post->body=request('body');
$post->save();
return redirect('/');
}
Exceptions:
RuntimeException
Could not find resource 'js/zepto.min.js' in any resource paths.(searched: C:\wamp64\www\blog\vendor\filp\whoops\src\Whoops\Handler/../Resources)
at PrettyPageHandler->getResource('js/zepto.min.js')in PrettyPageHandler.php (line 170)
at PrettyPageHandler->handle(object(FatalThrowableError))in Run.php (line 272)
at Run->handleException(object(FatalThrowableError))in Handler.php (line 338)
at Handler->renderExceptionWithWhoops(object(FatalThrowableError))in Handler.php (line 317)
at Handler->renderExceptionContent(object(FatalThrowableError))in Handler.php (line 301)
at Handler->convertExceptionToResponse(object(FatalThrowableError))in Handler.php (line 280)
at Handler->prepareResponse(object(Request), object(FatalThrowableError))in Handler.php (line 187)
at Handler->render(object(Request), object(FatalThrowableError))in Handler.php (line 51)
at Handler->render(object(Request), object(FatalThrowableError))in Pipeline.php (line 83)
at Pipeline->handleException(object(Request), object(FatalThrowableError))in Pipeline.php (line 34)
at Pipeline->Illuminate\Routing{closure}(object(Request))in SubstituteBindings.php (line 41)
at SubstituteBindings->handle(object(Request), object(Closure))in Pipeline.php (line 149)
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53)
at Pipeline->Illuminate\Routing{closure}(object(Request))in VerifyCsrfToken.php (line 67)
at VerifyCsrfToken->handle(object(Request), object(Closure))in Pipeline.php (line 149)
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53)
at Pipeline->Illuminate\Routing{closure}(object(Request))in ShareErrorsFromSession.php (line 49)
at ShareErrorsFromSession->handle(object(Request), object(Closure))in Pipeline.php (line 149)
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53)
at Pipeline->Illuminate\Routing{closure}(object(Request))in StartSession.php (line 63)
at StartSession->handle(object(Request), object(Closure))in Pipeline.php (line 149)
at Pipeline->Illuminate\Pipeline{closure}(object(Request))in Pipeline.php (line 53)
at Pipeline->Illuminate\Routing{closure}(object(Request))in AddQueuedCookiesToResponse.php (line 37)
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))in Pipeline.php (line 149)
and son on what should i do please help!
does your project have a composer.lock? if so, try deleting the vendor directory and then run composer install, my guess is that the error originated from a file that 'might' have been manually removed 🤔
i solved the issue.
Js folder was missing in my project inside vendor\filp\whoops\src\Whoops\Resources\ and that js folder contain many js files plus this one zepto.min.js this one is important during inserting record :)
@AlamTheInnov where can i find this js folder to download them ??
sorry brother for late reply, are you facing the same problem?
On Wed, Mar 6, 2019 at 7:10 AM hadrumkadhemkilani notifications@github.com
wrote:
@AlamTheInnov https://github.com/AlamTheInnov where can i find this js
folder to download them ??—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/laravel/framework/issues/23953#issuecomment-470142651,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATfmxaBhG0a6xfNfXkFHWHbbeTbcaIZSks5vT9pJgaJpZM4TdYS1
.
Most helpful comment
does your project have a
composer.lock? if so, try deleting thevendordirectory and then runcomposer install, my guess is that the error originated from a file that 'might' have been manually removed 🤔