Skip to content

Commit

Permalink
Local changes
Browse files Browse the repository at this point in the history
  • Loading branch information
perisicnikola37 committed Aug 3, 2023
1 parent fcb08c8 commit 7c3a55b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/CourseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CourseController extends Controller
*/
public function index()
{
$courses = Course::with('category', 'instructor', 'level', 'status', 'language')->paginate(5);
$courses = Course::with('category', 'instructor', 'level', 'status', 'language')->paginate(10);

return view('pages.Courses.index', compact('courses'));
}
Expand Down
1 change: 1 addition & 0 deletions database/factories/CourseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function definition()
'price' => $this->faker->randomFloat(2, 0, 100),
'certification' => false,
'bestseller' => false,
'created_at' => $this->faker->dateTimeBetween('-6 days', 'now'),
];
}
}
1 change: 1 addition & 0 deletions database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function definition()
'town' => null,
'country' => null,
'short_bio' => 'Lorem ipsum',
'created_at' => $this->faker->dateTimeBetween('-6 days', 'now'),
];
}
}
2 changes: 1 addition & 1 deletion public/dist/js/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let myChart;
function fetchDataAndRenderChart() {
console.log('fetchDataAndRenderChart function is called.');

fetch('https://api.academix.me/api/chart-data')
fetch('http://127.0.0.1:8000/api/chart-data')
.then(response => response.json())
.then(data => {
console.log('Data received:', data);
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class="brand-image img-circle elevation-3" style="opacity: .8">
<div class="d-flex justify-content-center">
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image">
<img src="https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_1280.png"
<img src="https://avatars.githubusercontent.com/u/79047182?v=4"
class="img-circle elevation-2" alt="User Image">
</div>
<div class="info">
Expand Down

0 comments on commit 7c3a55b

Please sign in to comment.