Posts

Showing posts with the label web

Laravel: Component HttpKernel Exception MethodNotAllowedHttpException No message

Laravel: Component HttpKernel Exception MethodNotAllowedHttpException No message I'm a newbie to this laravel. i've followed a tutorial and i've checked that i wasn't do anything wrong, and then this error comes up. in this code i tried to Read data from table Inputs and create a page to Insert Data into the database in Inputs table. TicketController: public function index(){ $inputs = Inputs::all(); return view('index', [ 'inputs' => $inputs ]); } public function create(){ return view('create'); } public function store(Request $request) { $inputs = new Inputs(); $inputs->inputName = $request->inputName; $inputs->inputAddress = $request->inputAddress; $inputs->inputBDO = Carbon::parse($request->inputBDO); $inputs->inputEmail = $request->inputEmail; $inputs->inputPhone = $request->inputPhone; $inputs->inputJob = $request->inputJob; $inputs->save()...

React-JS Loading components on top, and hiding specific repeating components

React-JS Loading components on top, and hiding specific repeating components I have 2 questions: I cant higure out how to render my page always on top when the react-js route is updated its always render on the middle or some random position I have the basic components in my app.js included header and footer thats the same for every page, but what if i dont want to show my footer on the main page how to hide it on that specific page ? Welcome to stackoverflow Sebastián! This question is very broad, so it will be hard for us to help you. Please read How do I ask a good question. – Tholle Jul 1 at 9:51 1 Answer 1 Use this code code for scroll top on navigate to new component. <Router onUpdate={() => window.scrollTo(0, 0)}> <AppContainer>...