changeweb / Unifiedtransform
- четверг, 4 апреля 2019 г. в 00:17:19
HTML
A school management Software
We like to challenge the quality of what we build to make it better. To do so, we try to make the product intuitive, beautiful, and user friendly. Innovation and hard work help to fulfill these requirements. I believe in order to innovate we need to think differently. A few months ago I discovered there was no open source free school management software that met my quality standards. I happen to know a bit of programming so I decided to make one. I also believe that working with more people can push the standard higher than working alone. So I decided to make it open source and free.
Community contribution can make this product better!! See Contribution guideline before making any Pull request
./vendor/bin/phpunit and to run Browser Tests set APP_URL environment variable in your .env file. This value should match the URL you use to access your application in a browser. Then run php artisan dusk.GNU General Public License v3.0
This software has following features:
Here are some basic steps to start using this application
Note: Instruction on cached data for Dashboard is given in Good to know segment below.
Run php composer.phar install for developer environment and run php composer.phar install --no-dev for production environment to install Laravel packages
Create .env file from .env.example and generate APP_KEY using php artisan key:generate
Set the database connection configuration and APP_ENV according to your application environment (e.g. local, production) in .env file
To create a Master, go to the database\seeds\UsersTableSeeder.php and change the name, the email and the password settings to your likings. Leave the other settings (role, active, verified) unchanged!
Laravel Passport package is included to support API. Key for Passport should be automatically generated by php artisan passport:keys from post-install-cmd script in composer.json or you have to run this manually and to remove this package just follow these steps
composer.json require dependencies and remove command @php artisan passport:keys from post-install-cmd scriptcomposer update and composer dump-autoload.app\User.php model, remove the HasApiToken trait.app\Proiders\AuthServiceProvider, remove Passport::routes(); in your boot method.config/auth.php, change your driver option for api from passport to api authenticationTo create the tables, run php artisan migrate.
migrations table and run command artisan migrate:refreshTo seed the tables with fake data, use php artisan db:seed.
If you want to run the migration and the seeding together, use php artisan migrate:refresh --seed
You must seed database\seeds\UsersTableSeeder.php at least once in order to create the Master account. To do so, follow these steps:
$this->call(UsersTableSeeder::class); in database\seeds\DatabaseSeeder.php;factory(App\User::class, 200)->create(); in UsersTableSeeder.php.So your files will look something like this:
In database\seeds\DatabaseSeeder.php:
...
//$this->call(SectionsTableSeeder::class);
$this->call(UsersTableSeeder::class);
//$this->call(AttendancesTableSeeder::class);
...
In database\seeds\UsersTableSeeder.php:
...
//factory(App\User::class, 200)->create();
master can create a new school and its admins!example.com\login using your Master account credentialsschooladmin for the newly created schoolmaster CANNOT manage a school's data!admin at example.com\login.env, turn APP_DEBUG to false for production environment.php artisan up and php artisan down.index method in app\Http\Controller\HomeController.phplike the following example.
So your edit would be something like this:From:
...
$classes = \Cache::remember('classes', $minutes, function () {
return \App\Myclass::where('school_id', \Auth::user()->school->id)
->pluck('id')
->toArray();
});
...
To:
...
$classes = \App\Myclass::where('school_id', \Auth::user()->school->id)
->pluck('id')
->toArray();
...
You can do similar for other cache lines.
Auto generated fake data were used.