Skip to content

Commit

Permalink
indentation error solved
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar1862000 committed Dec 12, 2024
1 parent d5a0f5a commit a8405a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public function __construct()
*/
public function index()
{
$unreadBook = session('disable_book_suggestion') ? null : Book::getRandomUnreadBook();
$unreadBook = session('disable_book_suggestion') ? null : Book::getRandomUnreadBook();

$selectedLocation = auth()->user()->office_location ?? 'Default Location';
$selectedLocation = auth()->user()->office_location ?? 'Default Location';

return view('home')->with([
'book' => $unreadBook,
'selectedLocation' => $selectedLocation,
]);
return view('home')->with([
'book' => $unreadBook,
'selectedLocation' => $selectedLocation,
]);
}


Expand All @@ -44,7 +44,7 @@ public function index()
* @return array List of groups
*/


// public function getUserGroups($email)
// {
// $client = new Google_Client();
Expand Down Expand Up @@ -73,7 +73,7 @@ public function index()

public function storeEmployeeLocation(Request $request)
{
$request->validate([
$request->validate([
'centre_name' => 'required|string',
]);

Expand All @@ -84,4 +84,4 @@ public function storeEmployeeLocation(Request $request)

return redirect('home');
}
}
}
2 changes: 1 addition & 1 deletion app/Models/KnowledgeCafe/WeeklyDose.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
class WeeklyDose extends Model
{
protected $fillable = ['description', 'url', 'recommended_by'];
}
}

0 comments on commit a8405a9

Please sign in to comment.