php - Cannot declare class App\Utils\System\Log because the name is already in use -
i'm using laravel 5.2 & php version 5.6.21 , have come across issue :
fatalerrorexception in log.php line 8: cannot declare class app\utils\system\log because name in use
in log.php line 8
my log.php looks :
<?php namespace app\utils\system; use log; use app\log logdb; use carbon\carbon carbon; class log { public function save($msg,$flag) { /* //check see if there organisation set $org = ''; if(!is_null(session('organisation_name'))) { $org = session('organisation_name'); } $message ='{"action":"'.$msg.'", "uuid":"'.\auth::user()->id.'", "company_id":"'.\auth::user()->company_id.'","organisation":"'.$org.'","date":"'.carbon::now().'"}'; //set local log if($flag=='info') log::info($message); //save db $l = new logdb(); $l->log_message = $message; $l->save(); */ } }
the problem, i'm finding is, if rename log else, error...
has had issue? fixes known.
thanks
Comments
Post a Comment