jeudi 25 mai 2017

FatalErrorException in CarController.php line 16: syntax error, unexpected 'dd' (T_STRING)

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class CarController extends Controller
{
public function p_form(Request $r)
{
  $rules = [
"name"=>"required",
"email" =>"required | email",
"message" => "required"
];
  $this->validate($r, $rules)
   dd($r);
}
public function g_form()
{
  return view('form');
}
}


i m getting this error FatalErrorException in CarController.php line 16: syntax error, unexpected 'dd' (T_STRING)  

what is the error in this line i m getting this error FatalErrorException in CarController.php line 16: syntax error, unexpected 'dd' (T_STRING)

what is the error in this line



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qS2u8h
via IFTTT

Aucun commentaire:

Enregistrer un commentaire