app/Http/Controllers/CompanyController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Company  $company
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Company $company)
    {
        $company = Company::findOrFail($company->id);
        $company->delete();
        return redirect('/companies')->with('completed', 'company has been deleted');
    }
public function destroy ( Company $ company ) { $ company = Company :: findOrFail ( $ company -> id ) ; $ company -> delete ( ) ; return redirect ( '/companies' ) -> with ( 'completed' , 'company has been deleted' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .