PHP Класс App\Http\Controllers\FreeProductsController

Наследование: extends Controller
Показать файл Открыть проект

Открытые методы

Метод Описание
create ( $orderId ) : Response Show the form for creating a new resource.
destroy ( integer $id ) : Response Remove the specified resource from storage.
edit ( integer $id ) : Response Show the form for editing the specified resource.
getParentAndChildren ( [array] $select = ['id', 'description'], [integer] $limit = 5 ) build the free prodcuts tree where parent will be a free product and children are the products list associated.
index ( Illuminate\Http\Request $request ) : Response Display a listing of the resource.
myFreeProducts ( Illuminate\Http\Request $request )
show ( integer $id ) : View Return the product data free query view.
store ( Illuminate\Http\Request $request ) : Response Store a newly created resource in storage.
subscribe ( integer $id ) : Response Subscription free product, validating the conditions and validity of the same.
update ( integer $id ) : Response Update the specified resource in storage.

Описание методов

create() публичный Метод

Show the form for creating a new resource.
public create ( $orderId ) : Response
Результат Response

destroy() публичный Метод

Remove the specified resource from storage.
public destroy ( integer $id ) : Response
$id integer
Результат Response

edit() публичный Метод

Show the form for editing the specified resource.
public edit ( integer $id ) : Response
$id integer
Результат Response

getParentAndChildren() публичный статический Метод

build the free prodcuts tree where parent will be a free product and children are the products list associated.
public static getParentAndChildren ( [array] $select = ['id', 'description'], [integer] $limit = 5 )
$select [array]
$limit [integer]

index() публичный Метод

Display a listing of the resource.
public index ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
Результат Response

myFreeProducts() публичный Метод

public myFreeProducts ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request

show() публичный Метод

Return the product data free query view.
public show ( integer $id ) : View
$id integer of freeproduct
Результат View

store() публичный Метод

Store a newly created resource in storage.
public store ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
Результат Response

subscribe() публичный Метод

Subscription free product, validating the conditions and validity of the same.
public subscribe ( integer $id ) : Response
$id integer
Результат Response

update() публичный Метод

Update the specified resource in storage.
public update ( integer $id ) : Response
$id integer
Результат Response