app/Http/Controllers/PpcController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Ppc  $ppc
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Ppc $ppc)
    {
        $nama = $ppc->nama;
        $user = User::find($ppc->user->id);
        $user->delete();
        return redirect()->back()->with('success', 'Data Staff PPC '.$nama.' berhasil dihapus');
    }
public function destroy ( Ppc $ ppc ) { $ nama = $ ppc -> nama ; $ user = User :: find ( $ ppc -> user -> id ) ; $ user -> delete ( ) ; return redirect ( ) -> back ( ) -> with ( 'success' , 'Data Staff PPC ' . $ nama . ' berhasil dihapus' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .