Tech
Batal
KATEGORI
link has been copied
3918
Lapor Hansip
30-12-2012 23:20

[Comunity] Laravel A Framework For Web Artisans :: Belajar, Diskusi, Tanya, dll.

Hallo Gan, berhubung di kaskus ini saya ubek2 belum ada thread yang membahas Laravel, maka dari itu saya ijin untuk membuat threadnya untuk keperluan Belajar, Diskusi dan Tanya-jawab.



Diubah oleh aa_pratomo
0
Masuk atau Daftar untuk memberikan balasan
[Comunity] Laravel A Framework For Web Artisans :: Belajar, Diskusi, Tanya, dll.
07-04-2018 02:35
Quote:Original Posted By ReaLaLuN
gan controller not found trus nih... padahal controllernya ada


ini routenya
Code:

Route::get('/', function() {
return view('home');
});

Route::get('/signin', function() {
return view('login');
});

Route::get('/register', function() {
return view('register.register');
});

Route::Post('/register_action','RegisterController@store');


ini registercontollernya
Code:
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class RegisterController extends Controller
{
//

public function store(){
echo "test";
}
}



ini view nya
Code:
@extends('layout');

@section('content')

<h2>Vertical (basic) form</h2>
<form action="/register_action" method="post">

<input type="hidden" name="_token" value="{{csrf_token()}}">

<div class="form-group">
<label for="name">Name:</label>
<input type="name" name="username" class="form-control" id="name" placeholder="Enter Name">
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" name="email" class="form-control" id="email" placeholder="Enter email">
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" name="password" class="form-control" id="pwd" placeholder="Enter password">
</div>
<div class="form-group">
<label for="pwd"Confirm >Password:</label>
<input type="password" name="cpassword" class="form-control" id="pwd" placeholder="Confirm password">
</div>
<div class="checkbox">
<label><input type="checkbox" name="remember"> Remember me</label>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>

@endsection


tolong bantu agan2




Isi file App\Http\Controllers\Controller.php ada di ubah2 gan? coba printscreen isi file App\Http\Controllers\Controller.php nya gan, terus di file App\Http\Controllers\RegisterController.php nya hapus lagi baris ini "use App\RegisterController"
Diubah oleh oBheLy
0 0
0
icon-hot-thread
Hot Threads
obrolan-hangat-logo
Obrolan Hangat
Copyright © 2020, Kaskus Networks, PT Darta Media Indonesia