We are working for update doc for SXIMO 5.1.7

Registering Model

Sometime you need to create model for used a cross controller and view . Ofcourse , you can use more than one table inside model .

All model are stored at /app/Models/

Model Class Structure

	<?php namespace App\Models;    
	use Illuminate\Auth\Authenticatable;  
	use Illuminate\Database\Eloquent\Model;    
	class Mymodel extends Sximo  {    

Method / Function

	class Mymodel extends Sximo  {        
		static function myFirstFunction(){          
			return 'hai this is my first function';      


Register your method to controller if you want to include your model into spesific controller , you need to register model

<?php namespace App\Http\Controllers;    
	use App\Http\Controllers\controller;  
	/* Registering model */  
	use App\Models\Mymodel;  
	/* End Registering model */ 

Calling your model and function inside controller

$var  = Mymodel::myFirstFunction();  

Calling your model and function directly without have to register

$var  = \app\Models\Mymodel::myFirstFunction();