-
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec8e9ec
commit 33f89d7
Showing
2,262 changed files
with
799,757 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
APP_NAME=Laravel | ||
APP_ENV=local | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
LOG_CHANNEL=stack | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=laravel | ||
DB_USERNAME=root | ||
DB_PASSWORD= | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_DRIVER=smtp | ||
MAIL_HOST=smtp.mailtrap.io | ||
MAIL_PORT=2525 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AWS_BUCKET= | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/node_modules | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
.env | ||
.env.backup | ||
.phpunit.result.cache | ||
Homestead.json | ||
Homestead.yaml | ||
npm-debug.log | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<h1 align="center">Selamat datang di Sistem Informasi Akademik Sekolah! 👋</h1> | ||
|
||
## Apa itu Sistem Informasi Akademik Sekolah? | ||
|
||
Web Sistem Informasi Akademik Sekolah yang dibuat oleh <a href="https://github.com/adhiariyadi"> Adhi Ariyadi </a>. **Sistem Informasi Akademik Sekolah adalah Website untuk para siswa dapat melihat jadwal pelajaran, dan nilai rapot dan para guru dapat menambahkan nilai siswa dengan muda melalui website.** | ||
|
||
## Fitur apa saja yang tersedia di Sistem Informasi Akademik Sekolah? | ||
|
||
- Autentikasi Admin | ||
- User & CRUD | ||
- Jadwal & CRUD | ||
- Kelas & CRUD | ||
- Mata Pelajaran & CRUD | ||
- Guru & CRUD | ||
- Siswa & CRUD | ||
- Rapot | ||
- Dan lain-lain | ||
|
||
## Release Date | ||
|
||
**Release date : 28 Apr 2020** | ||
|
||
> Sistem Informasi Akademik Sekolah merupakan project open source yang dibuat oleh Adhi Ariyadi. Kalian dapat download/fork/clone. Cukup beri stars di project ini agar memberiku semangat. Terima kasih! | ||
--- | ||
|
||
## Default Account for testing | ||
|
||
**Admin Default Account** | ||
|
||
- email: admin@gmail.com | ||
- Password: 12345678 | ||
|
||
--- | ||
|
||
## Install | ||
|
||
1. **Clone Repository** | ||
|
||
```bash | ||
git clone https://github.com/adhiariyadi/Sistem-Informasi-Akademik-Sekolah-Laravel.git | ||
cd Sistem-Informasi-Akademik-Sekolah-Laravel | ||
composer install | ||
npm install | ||
cp .env.example .env | ||
``` | ||
|
||
2. **Buka `.env` lalu ubah baris berikut sesuai dengan databasemu yang ingin dipakai** | ||
|
||
```bash | ||
DB_PORT=3306 | ||
DB_DATABASE=laravel | ||
DB_USERNAME=root | ||
DB_PASSWORD= | ||
``` | ||
|
||
3. **Instalasi website** | ||
|
||
```bash | ||
php artisan key:generate | ||
php artisan migrate --seed | ||
``` | ||
|
||
4. **Jalankan website** | ||
|
||
```bash | ||
php artisan serve | ||
``` | ||
|
||
## Author | ||
|
||
- Facebook : <a href="https://web.facebook.com/profile.php?id=100007787444809"> Adhi Ariyadi</a> | ||
- LinkedIn : <a href="https://www.linkedin.com/in/adhi-ariyadi-62164a1a0/"> Adhi Ariyadi</a> | ||
|
||
## Contributing | ||
|
||
Contributions, issues and feature requests di persilahkan. | ||
Jangan ragu untuk memeriksa halaman masalah jika Anda ingin berkontribusi. **Berhubung Project ini saya sudah selesaikan sendiri, namun banyak fitur yang kalian dapat tambahkan silahkan berkontribusi yaa!** | ||
|
||
## License | ||
|
||
- Copyright © 2020 Adhi Ariyadi. | ||
- **Sistem Informasi Akademik Sekolah is open-sourced software licensed under the MIT license.** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Absen extends Model | ||
{ | ||
protected $fillable = ['guru_id', 'tanggal', 'kehadiran_id']; | ||
|
||
public function guru() | ||
{ | ||
return $this->belongsTo('App\Guru')->withDefault(); | ||
} | ||
|
||
public function kehadiran() | ||
{ | ||
return $this->belongsTo('App\Kehadiran')->withDefault(); | ||
} | ||
|
||
protected $table = 'absensi_guru'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace App\Console; | ||
|
||
use Illuminate\Console\Scheduling\Schedule; | ||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | ||
|
||
class Kernel extends ConsoleKernel | ||
{ | ||
/** | ||
* The Artisan commands provided by your application. | ||
* | ||
* @var array | ||
*/ | ||
protected $commands = [ | ||
// | ||
]; | ||
|
||
/** | ||
* Define the application's command schedule. | ||
* | ||
* @param \Illuminate\Console\Scheduling\Schedule $schedule | ||
* @return void | ||
*/ | ||
protected function schedule(Schedule $schedule) | ||
{ | ||
// $schedule->command('inspire') | ||
// ->hourly(); | ||
} | ||
|
||
/** | ||
* Register the commands for the application. | ||
* | ||
* @return void | ||
*/ | ||
protected function commands() | ||
{ | ||
$this->load(__DIR__.'/Commands'); | ||
|
||
require base_path('routes/console.php'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
namespace App\Exceptions; | ||
|
||
use Exception; | ||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | ||
|
||
class Handler extends ExceptionHandler | ||
{ | ||
/** | ||
* A list of the exception types that are not reported. | ||
* | ||
* @var array | ||
*/ | ||
protected $dontReport = [ | ||
// | ||
]; | ||
|
||
/** | ||
* A list of the inputs that are never flashed for validation exceptions. | ||
* | ||
* @var array | ||
*/ | ||
protected $dontFlash = [ | ||
'password', | ||
'password_confirmation', | ||
]; | ||
|
||
/** | ||
* Report or log an exception. | ||
* | ||
* @param \Exception $exception | ||
* @return void | ||
* | ||
* @throws \Exception | ||
*/ | ||
public function report(Exception $exception) | ||
{ | ||
parent::report($exception); | ||
} | ||
|
||
/** | ||
* Render an exception into an HTTP response. | ||
* | ||
* @param \Illuminate\Http\Request $request | ||
* @param \Exception $exception | ||
* @return \Symfony\Component\HttpFoundation\Response | ||
* | ||
* @throws \Exception | ||
*/ | ||
public function render($request, Exception $exception) | ||
{ | ||
return parent::render($request, $exception); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Exports; | ||
|
||
use App\Guru; | ||
use Maatwebsite\Excel\Concerns\FromCollection; | ||
|
||
class GuruExport implements FromCollection | ||
{ | ||
/** | ||
* @return \Illuminate\Support\Collection | ||
*/ | ||
public function collection() | ||
{ | ||
$guru = Guru::join('mapel', 'mapel.id', '=', 'guru.mapel_id')->select('guru.nama_guru', 'guru.nip', 'guru.jk', 'mapel.nama_mapel')->get(); | ||
return $guru; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Exports; | ||
|
||
use App\Jadwal; | ||
use Maatwebsite\Excel\Concerns\FromCollection; | ||
|
||
class JadwalExport implements FromCollection | ||
{ | ||
/** | ||
* @return \Illuminate\Support\Collection | ||
*/ | ||
public function collection() | ||
{ | ||
$jadwal = Jadwal::join('hari', 'hari.id', '=', 'jadwal.hari_id') | ||
->join('kelas', 'kelas.id', '=', 'jadwal.kelas_id') | ||
->join('mapel', 'mapel.id', '=', 'jadwal.mapel_id') | ||
->join('guru', 'guru.id', '=', 'jadwal.guru_id') | ||
->join('ruang', 'ruang.id', '=', 'jadwal.ruang_id') | ||
->select('hari.nama_hari', 'kelas.nama_kelas', 'mapel.nama_mapel', 'guru.nama_guru', 'jadwal.jam_mulai', 'jadwal.jam_selesai', 'ruang.nama_ruang') | ||
->get(); | ||
return $jadwal; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Exports; | ||
|
||
use App\Siswa; | ||
use Maatwebsite\Excel\Concerns\FromCollection; | ||
|
||
class SiswaExport implements FromCollection | ||
{ | ||
/** | ||
* @return \Illuminate\Support\Collection | ||
*/ | ||
public function collection() | ||
{ | ||
$siswa = Siswa::join('kelas', 'kelas.id', '=', 'siswa.kelas_id')->select('siswa.nama_siswa', 'siswa.no_induk', 'siswa.jk', 'kelas.nama_kelas')->get(); | ||
return $siswa; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Database\Eloquent\SoftDeletes; | ||
|
||
class Guru extends Model | ||
{ | ||
use SoftDeletes; | ||
|
||
protected $fillable = ['id_card', 'nip', 'nama_guru', 'mapel_id', 'kode', 'jk', 'telp', 'tmp_lahir', 'tgl_lahir', 'foto']; | ||
|
||
public function mapel() | ||
{ | ||
return $this->belongsTo('App\Mapel')->withDefault(); | ||
} | ||
|
||
public function dsk($id) | ||
{ | ||
$dsk = Nilai::where('guru_id', $id)->first(); | ||
return $dsk; | ||
} | ||
|
||
protected $table = 'guru'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Hari extends Model | ||
{ | ||
protected $fillable = ['nama_hari']; | ||
|
||
protected $table = 'hari'; | ||
} |
Oops, something went wrong.