Commit 17d91e89 by Arpit Jain

create slug condition

parent 2fc19b65
...@@ -32,6 +32,15 @@ class SearchController extends Controller ...@@ -32,6 +32,15 @@ class SearchController extends Controller
* */ * */
public function index(Request $request) public function index(Request $request)
{ {
// $file = storage_path('app/key/apikey.dba');
/*$file = Storage::disk('public')->path('key/apikey.dba');
dd($file);
if (!is_file($file)) {
$fh = fopen($file, 'w') or $this->traceLog('Code Error #: Unable to create .dba file');
}
die($fh);*/
$api_url = config('app.api_list'); $api_url = config('app.api_list');
$apiLocaterData = $this->call_api('',$api_url); $apiLocaterData = $this->call_api('',$api_url);
......
...@@ -81,10 +81,10 @@ ...@@ -81,10 +81,10 @@
</div> </div>
<div class="location_data-content"> <div class="location_data-content">
<h5 class="title"> <h5 class="title">
@if(!empty($data['slug'])) @if(empty($data['slug']))
<a href="{{route('detail',['slug'=>$data['slug']])}}"><?php echo $data['name']; ?></a>
@else
{{$data['name']}} {{$data['name']}}
@else
<a href="{{route('detail',['slug'=>$data['slug']])}}"><?php echo $data['name']; ?></a>
@endif @endif
</h5> </h5>
<span class="ratings"> <span class="ratings">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment