/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     OpportunityStage::create(["name" => "Qualification"]);
     OpportunityStage::create(["name" => "Proposal"]);
     OpportunityStage::create(["name" => "Negotiation"]);
     OpportunityStage::create(["name" => "Closed Won"]);
     OpportunityStage::create(["name" => "Closed Lost"]);
 }
Ejemplo n.º 2
0
 public function show($id)
 {
     return view('app.opportunity.show', ['opportunity' => Opportunity::withTrashed()->find($id), 'stages' => OpportunityStage::all()]);
 }