php - Internal server error while executing insert query in laravel -
so, have started out laravel. trying create create task api, save data database.
this routes.php
route::any('/createticket', 'clientscontroller@store');
this controllers code(clientscontroller):
public function store(request $request) { echo "abc"; //exit(); $input = $request->all('client_name', 'client_state'); clients::storeclientdetails($input); print_r($input); }
this models code(clients):
public static function storeclientdetails($data){ echo "stor"; $id = db::table('client_details')->insertgetid($data); print_r($data); print_r($id); }
i data store function. but, nothing saved in database.
what exact issue here???