PHP Classes

File: src/Helpers.php

Recommend this page to a friend!
  Classes of Moamen Eltouny   Laravel Pages Package   src/Helpers.php   Download  
File: src/Helpers.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Pages Package
Provides pages to be associated with model objects
Author: By
Last change:
Date: 3 years ago
Size: 187 bytes
 

Contents

Class file image Download
<?php

use Pharaonic\Laravel\Pages\Models\Page;

/**
 * Find A Page
 *
 * @param integer $id
 * @return Page|null
 */
function page(int $id)
{
    return
Page::find($id);
}