PHP code example of erenmustafaozdal / laravel-page-module

1. Go to this page and download the library: Download erenmustafaozdal/laravel-page-module library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

erenmustafaozdal / laravel-page-module example snippets


ErenMustafaOzdal\LaravelPageModule\LaravelPageModuleServiceProvider::class,

namespace App;

use ErenMustafaOzdal\LaravelPageModule\PageCategory as EMOPageCategory;

class PageCategory extends EMOPageCategory
{
    //
}

namespace App;

use ErenMustafaOzdal\LaravelPageModule\Page as EMOPage;

class Page extends EMOPage
{
    //
}

public function rules()
{
    return [
      'name'          => '

public function rules()
{
    return [
      'name'          => '

public function rules()
{
    return [
      'category_id'       => '    => 'alpha_dash|max:255|unique:pages',
      'description'       => 'max:255',
      'meta_title'        => 'max:255',
      'meta_description'  => 'max:255',
      'meta_keywords'     => 'max:255',
    ];
}

public function rules()
{
    $id = is_null($this->segment(5)) ? $this->segment(3) : $this->segment(5);
    return [
      'category_id'       => '=> 'max:255',
      'meta_title'        => 'max:255',
      'meta_description'  => 'max:255',
      'meta_keywords'     => 'max:255',
    ];
}
bash
php artisan vendor:publish --provider="ErenMustafaOzdal\LaravelPageModule\LaravelPageModuleServiceProvider"
bash
php artisan migrate
bash
php artisan vendor:publish --provider="Mews\Purifier\PurifierServiceProvider"