app/Http/Controllers/TipoFaseController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $tipo_fase=Planeacion_tipo::with('Area_planeacion')->where('estado','!=','1')->get();
        return response()->json($tipo_fase);
    }
public function index ( ) { $ tipo_fase = Planeacion_tipo :: with ( 'Area_planeacion' ) -> where ( 'estado' , '!=' , '1' ) -> get ( ) ; return response ( ) -> json ( $ tipo_fase ) ; }
Display a listing of the resource.
Display a listing of the resource .