├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── .styleci.yml ├── README.md ├── app ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── AppBaseController.php │ │ ├── Auth │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── RegisterController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── VerificationController.php │ │ ├── Controller.php │ │ └── HomeController.php │ ├── Kernel.php │ └── Middleware │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php ├── Models │ └── User.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php └── Repositories │ └── BaseRepository.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── filesystems.php ├── hashing.php ├── infyom │ └── laravel_generator.php ├── logging.php ├── mail.php ├── queue.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── factories │ └── UserFactory.php ├── migrations │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ └── 2019_08_19_000000_create_failed_jobs_table.php └── seeders │ └── DatabaseSeeder.php ├── docker-compose.yml ├── package.json ├── phpunit.xml ├── public ├── .gitignore ├── .htaccess ├── css │ ├── Pe-icon-7-stroke.css │ ├── all.css │ ├── app.css │ ├── bootstrap-flex.css │ ├── bootstrap.css │ ├── custom.css │ ├── font-awesome.min.css │ ├── main.css │ ├── main.min.css │ ├── owl.carousel.css │ ├── owl.theme.css │ ├── prism.css │ └── social-icons.css ├── favicon.ico ├── img │ └── logo.png ├── index.php ├── js │ ├── bootstrap.min.js │ ├── jquery-1.12.0.min.js │ ├── scripts.js │ ├── scripts.min.js │ ├── tether.min.js │ └── webfont.js ├── robots.txt ├── web.config └── web │ ├── css │ ├── components.css │ ├── components.css.map │ ├── custom.css │ ├── custom.css.map │ ├── reverse.css │ ├── rtl.css │ ├── skins │ │ ├── reverse.css │ │ └── reverse.css.map │ ├── style.css │ └── style.css.map │ ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ └── fontawesome-webfont.woff2 │ └── js │ ├── bootstrap-select.min.js │ ├── bootstrap.min.js │ ├── currency.js │ ├── custom.js │ ├── jquery-ui.min.js │ ├── jquery.inview.min.js │ ├── jquery.validate.min.js │ ├── scripts.js │ └── stisla.js ├── resources ├── assets │ └── js │ │ ├── custom │ │ ├── custom-datatable.js │ │ └── custom.js │ │ └── profile.js ├── css │ └── app.css ├── infyom │ └── infyom-generator-templates │ │ ├── api │ │ ├── controller │ │ │ ├── api_controller.stub │ │ │ ├── api_controller_locale.stub │ │ │ ├── api_controller_locale_resource.stub │ │ │ ├── api_controller_resource.stub │ │ │ ├── model_api_controller.stub │ │ │ ├── model_api_controller_locale.stub │ │ │ ├── model_api_controller_locale_resource.stub │ │ │ └── model_api_controller_resource.stub │ │ ├── docs │ │ │ └── controller │ │ │ │ ├── controller.stub │ │ │ │ ├── destroy.stub │ │ │ │ ├── index.stub │ │ │ │ ├── show.stub │ │ │ │ ├── store.stub │ │ │ │ └── update.stub │ │ ├── request │ │ │ ├── create_request.stub │ │ │ └── update_request.stub │ │ ├── resource │ │ │ └── api_resource.stub │ │ ├── routes │ │ │ ├── prefix_routes.stub │ │ │ └── routes.stub │ │ └── test │ │ │ └── api_test.stub │ │ ├── app_base_controller.stub │ │ ├── base_repository.stub │ │ ├── docs │ │ ├── model.stub │ │ └── repository.stub │ │ ├── factories │ │ └── model_factory.stub │ │ ├── home_controller.stub │ │ ├── migration.stub │ │ ├── model │ │ ├── model.stub │ │ └── relationship.stub │ │ ├── repository.stub │ │ ├── routes │ │ └── user.stub │ │ ├── scaffold │ │ ├── auth │ │ │ ├── email.stub │ │ │ ├── login.stub │ │ │ ├── register.stub │ │ │ ├── reset.stub │ │ │ ├── verify.stub │ │ │ └── verify_6.stub │ │ ├── controller │ │ │ ├── controller.stub │ │ │ ├── controller_locale.stub │ │ │ ├── datatable_controller.stub │ │ │ ├── datatable_controller_locale.stub │ │ │ ├── jquery_datatable_controller.stub │ │ │ ├── jquery_modal_datatable_controller.stub │ │ │ ├── model_controller.stub │ │ │ ├── model_controller_locale.stub │ │ │ ├── model_datatable_controller.stub │ │ │ └── model_datatable_controller_locale.stub │ │ ├── datatable.stub │ │ ├── datatable_locale.stub │ │ ├── emails │ │ │ ├── password.stub │ │ │ └── password_locale.stub │ │ ├── fields │ │ │ ├── boolean.stub │ │ │ ├── boolean_locale.stub │ │ │ ├── checkbox.stub │ │ │ ├── checkbox_group.stub │ │ │ ├── checkbox_group_locale.stub │ │ │ ├── checkbox_locale.stub │ │ │ ├── date.stub │ │ │ ├── date_locale.stub │ │ │ ├── email.stub │ │ │ ├── email_locale.stub │ │ │ ├── file.stub │ │ │ ├── file_locale.stub │ │ │ ├── number.stub │ │ │ ├── number_locale.stub │ │ │ ├── password.stub │ │ │ ├── password_locale.stub │ │ │ ├── radio.stub │ │ │ ├── radio_group.stub │ │ │ ├── radio_group_locale.stub │ │ │ ├── select.stub │ │ │ ├── select_locale.stub │ │ │ ├── text.stub │ │ │ ├── text_locale.stub │ │ │ ├── text_modal_locale.stub │ │ │ ├── textarea.stub │ │ │ ├── textarea_locale.stub │ │ │ ├── toggle-switch.stub │ │ │ └── toggle-switch_locale.stub │ │ ├── jquery.stub │ │ ├── jquery_datatable.stub │ │ ├── jquery_datatable_locale.stub │ │ ├── jquery_modal.stub │ │ ├── jquery_modal_locale.stub │ │ ├── js_modal_renderer_template.stub │ │ ├── js_renderer_template.stub │ │ ├── layouts │ │ │ ├── app.stub │ │ │ ├── datatables_css.stub │ │ │ ├── datatables_js.stub │ │ │ ├── footer.stub │ │ │ ├── header.stub │ │ │ ├── home.stub │ │ │ ├── menu.stub │ │ │ ├── menu_template.stub │ │ │ ├── menu_template_locale.stub │ │ │ ├── sidebar.stub │ │ │ └── sidebar_locale.stub │ │ ├── request │ │ │ ├── create_request.stub │ │ │ └── update_request.stub │ │ ├── routes │ │ │ ├── prefix_routes.stub │ │ │ └── routes.stub │ │ ├── view_composer.stub │ │ ├── views │ │ │ ├── blade_table_body.stub │ │ │ ├── blade_table_body_locale.stub │ │ │ ├── create.stub │ │ │ ├── create_locale.stub │ │ │ ├── datatable_body.stub │ │ │ ├── datatable_column.stub │ │ │ ├── datatable_column_locale.stub │ │ │ ├── datatables_actions.stub │ │ │ ├── datatables_actions_locale.stub │ │ │ ├── edit.stub │ │ │ ├── edit_locale.stub │ │ │ ├── fields.stub │ │ │ ├── fields_locale.stub │ │ │ ├── index.stub │ │ │ ├── index_locale.stub │ │ │ ├── js_index.stub │ │ │ ├── js_index_locale.stub │ │ │ ├── js_modal_create.stub │ │ │ ├── js_modal_edit.stub │ │ │ ├── js_modal_index_locale.stub │ │ │ ├── js_table.stub │ │ │ ├── js_table_locale.stub │ │ │ ├── paginate.stub │ │ │ ├── show.stub │ │ │ ├── show_field.stub │ │ │ ├── show_field_locale.stub │ │ │ ├── show_locale.stub │ │ │ ├── table.stub │ │ │ ├── table_cell.stub │ │ │ ├── table_header.stub │ │ │ ├── table_header_locale.stub │ │ │ └── table_locale.stub │ │ └── webpack_mix_js.stub │ │ ├── seeds │ │ └── model_seeder.stub │ │ ├── test │ │ ├── api_test_trait.stub │ │ └── repository_test.stub │ │ ├── user │ │ ├── create_user_request.stub │ │ ├── update_user_request.stub │ │ ├── user_controller.stub │ │ ├── user_controller_without_repository.stub │ │ └── user_repository.stub │ │ └── view_service_provider.stub ├── js │ ├── app.js │ └── bootstrap.js ├── lang │ └── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php └── views │ ├── auth │ ├── emails │ │ └── password.blade.php │ ├── forgot-password.blade.php │ ├── login.blade.php │ ├── passwords │ │ ├── confirm.blade.php │ │ ├── email.blade.php │ │ └── reset.blade.php │ ├── register.blade.php │ ├── reset-password.blade.php │ └── verify.blade.php │ ├── home.blade.php │ ├── layouts │ ├── app.blade.php │ ├── auth_app.blade.php │ ├── datatables_css.blade.php │ ├── datatables_js.blade.php │ ├── footer.blade.php │ ├── header.blade.php │ ├── menu.blade.php │ └── sidebar.blade.php │ ├── profile │ ├── change_password.blade.php │ └── edit_profile.blade.php │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── server.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── ApiTestTrait.php ├── CreatesApplication.php ├── Feature │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── webpack.mix.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | LOG_LEVEL=debug 9 | 10 | DB_CONNECTION=mysql 11 | DB_HOST=127.0.0.1 12 | DB_PORT=3306 13 | DB_DATABASE=a 14 | DB_USERNAME=root 15 | DB_PASSWORD= 16 | 17 | BROADCAST_DRIVER=log 18 | CACHE_DRIVER=file 19 | QUEUE_CONNECTION=sync 20 | SESSION_DRIVER=file 21 | SESSION_LIFETIME=120 22 | 23 | MEMCACHED_HOST=127.0.0.1 24 | 25 | REDIS_HOST=127.0.0.1 26 | REDIS_PASSWORD=null 27 | REDIS_PORT=6379 28 | 29 | MAIL_MAILER=smtp 30 | MAIL_HOST=mailhog 31 | MAIL_PORT=1025 32 | MAIL_USERNAME=null 33 | MAIL_PASSWORD=null 34 | MAIL_ENCRYPTION=null 35 | MAIL_FROM_ADDRESS=null 36 | MAIL_FROM_NAME="${APP_NAME}" 37 | 38 | AWS_ACCESS_KEY_ID= 39 | AWS_SECRET_ACCESS_KEY= 40 | AWS_DEFAULT_REGION=us-east-1 41 | AWS_BUCKET= 42 | 43 | PUSHER_APP_ID= 44 | PUSHER_APP_KEY= 45 | PUSHER_APP_SECRET= 46 | PUSHER_APP_CLUSTER=mt1 47 | 48 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 49 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 50 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | .env 7 | .env.backup 8 | .phpunit.result.cache 9 | docker-compose.override.yml 10 | Homestead.json 11 | Homestead.yaml 12 | npm-debug.log 13 | yarn-error.log 14 | /composer.lock 15 | /.idea 16 | public/mix-manifest.json 17 | package-lock.json 18 | -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | php: 2 | preset: laravel 3 | disabled: 4 | - no_unused_imports 5 | finder: 6 | not-name: 7 | - index.php 8 | - server.php 9 | js: 10 | finder: 11 | not-name: 12 | - webpack.mix.js 13 | css: true 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

InfyOm

2 | 3 | ## Documentation 4 | 5 | Read [Documentation](https://infyom.com/open-source/laravelgenerator/docs/8.0/boilerplates) for detailed installation steps and usage. 6 | 7 | ## Support Us 8 | 9 | We have created [14+ Laravel packages](https://github.com/InfyOmLabs) and invested a lot of resources into creating these all packages and maintaining them. 10 | 11 | You can support us by either sponsoring us or buying one of our paid products. Or help us by spreading the word about us on social platforms via tweets and posts. 12 | 13 | ### Buy our Paid Products 14 | 15 | [![InfyLms](https://assets.infyom.com/open-source/new/infylms-banner.png)](https://1.envato.market/AoPX2a) 16 | 17 | You can also check out our other paid products on [CodeCanyon](https://1.envato.market/BXAnR1). 18 | 19 | ### Sponsors 20 | 21 | [Become a sponsor](https://opencollective.com/infyomlabs#sponsor) and get your logo on our README on Github with a link to your site. 22 | 23 | 24 | 25 | ### Backers 26 | 27 | [Become a backer](https://opencollective.com/infyomlabs#backer) and get your image on our README on Github with a link to your site. 28 | 29 | 30 | 31 | ### Follow Us 32 | 33 | - [Twitter](https://twitter.com/infyom) 34 | - [Facebook](https://www.facebook.com/infyom) 35 | - [LinkedIn](https://in.linkedin.com/company/infyom-technologies) 36 | - [Youtube](https://www.youtube.com/channel/UC8IvwfChD6i7Wp4yZp3tNsQ) 37 | - [Contact Us](https://infyom.com/contact-us) 38 | 39 | ## Made with InfyOm Generator 40 | 41 | Also, Do not forget to add your website to [Made with InfyOm Generator List](https://github.com/InfyOmLabs/laravel-generator/blob/develop/made-with-generator.md) list. 42 | 43 | ## Security 44 | 45 | If you discover any security-related issues, create an issue using the issue tracker. 46 | 47 | ## Credits 48 | 49 | - [InfyOm Technologies](https://github.com/infyomlabs) 50 | - [All Contributors](../../contributors) 51 | 52 | ## License 53 | 54 | The MIT License (MIT). Please see [License File](LICENSE.md) for more information. 55 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 28 | } 29 | 30 | /** 31 | * Register the commands for the application. 32 | * 33 | * @return void 34 | */ 35 | protected function commands() 36 | { 37 | $this->load(__DIR__.'/Commands'); 38 | 39 | require base_path('routes/console.php'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | reportable(function (Throwable $e) { 37 | // 38 | }); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Http/Controllers/AppBaseController.php: -------------------------------------------------------------------------------- 1 | true, 35 | 'message' => $message 36 | ], 200); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ConfirmPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 42 | } 43 | 44 | /** 45 | * Get a validator for an incoming registration request. 46 | * 47 | * @param array $data 48 | * @return \Illuminate\Contracts\Validation\Validator 49 | */ 50 | protected function validator(array $data) 51 | { 52 | return Validator::make($data, [ 53 | 'name' => ['required', 'string', 'max:255'], 54 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 55 | 'password' => ['required', 'string', 'min:8', 'confirmed'], 56 | ]); 57 | } 58 | 59 | /** 60 | * Create a new user instance after a valid registration. 61 | * 62 | * @param array $data 63 | * @return \App\Models\User 64 | */ 65 | protected function create(array $data) 66 | { 67 | return User::create([ 68 | 'name' => $data['name'], 69 | 'email' => $data['email'], 70 | 'password' => Hash::make($data['password']), 71 | ]); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | $this->middleware('signed')->only('verify'); 40 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Contracts\Support\Renderable 23 | */ 24 | public function index() 25 | { 26 | return view('home'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 33 | \App\Http\Middleware\EncryptCookies::class, 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 35 | \Illuminate\Session\Middleware\StartSession::class, 36 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 37 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 38 | \App\Http\Middleware\VerifyCsrfToken::class, 39 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 40 | ], 41 | 42 | 'api' => [ 43 | 'throttle:api', 44 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 45 | ], 46 | ]; 47 | 48 | /** 49 | * The application's route middleware. 50 | * 51 | * These middleware may be assigned to groups or used individually. 52 | * 53 | * @var array 54 | */ 55 | protected $routeMiddleware = [ 56 | 'auth' => \App\Http\Middleware\Authenticate::class, 57 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 58 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 59 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 60 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 61 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 62 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 63 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 64 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 65 | ]; 66 | } 67 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | check()) { 26 | return redirect(RouteServiceProvider::HOME); 27 | } 28 | } 29 | 30 | return $next($request); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | 'datetime', 42 | ]; 43 | } 44 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | configureRateLimiting(); 39 | 40 | $this->routes(function () { 41 | Route::prefix('api') 42 | ->middleware('api') 43 | ->as('api.') 44 | ->namespace($this->app->getNamespace().'Http\Controllers\API') 45 | ->group(base_path('routes/api.php')); 46 | 47 | Route::middleware('web') 48 | ->namespace($this->namespace) 49 | ->group(base_path('routes/web.php')); 50 | }); 51 | } 52 | 53 | /** 54 | * Configure the rate limiters for the application. 55 | * 56 | * @return void 57 | */ 58 | protected function configureRateLimiting() 59 | { 60 | RateLimiter::for('api', function (Request $request) { 61 | return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); 62 | }); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The Laravel Framework.", 5 | "keywords": [ 6 | "framework", 7 | "laravel" 8 | ], 9 | "license": "MIT", 10 | "require": { 11 | "php": "^7.3|^8.0", 12 | "fideloper/proxy": "^4.4", 13 | "fruitcake/laravel-cors": "^2.0", 14 | "guzzlehttp/guzzle": "^7.0.1", 15 | "infyomlabs/laravel-generator": "dev-infyom-dev", 16 | "infyomlabs/laravel-ui-stisla": "^3.0", 17 | "infyomlabs/stisla-templates": "^1.0", 18 | "laravel/framework": "^8.12", 19 | "laravel/tinker": "^2.5", 20 | "laravelcollective/html": "^6.2", 21 | "tightenco/ziggy": "^1.4", 22 | "yajra/laravel-datatables-oracle": "~9.0" 23 | }, 24 | "require-dev": { 25 | "facade/ignition": "^2.5", 26 | "fakerphp/faker": "^1.9.1", 27 | "laravel/sail": "^0.0.5", 28 | "mockery/mockery": "^1.4.2", 29 | "nunomaduro/collision": "^5.0", 30 | "phpunit/phpunit": "^9.3.3" 31 | }, 32 | "config": { 33 | "optimize-autoloader": true, 34 | "preferred-install": "dist", 35 | "sort-packages": true 36 | }, 37 | "extra": { 38 | "laravel": { 39 | "dont-discover": [] 40 | } 41 | }, 42 | "autoload": { 43 | "psr-4": { 44 | "App\\": "app/", 45 | "Database\\Factories\\": "database/factories/", 46 | "Database\\Seeders\\": "database/seeders/" 47 | } 48 | }, 49 | "autoload-dev": { 50 | "psr-4": { 51 | "Tests\\": "tests/" 52 | } 53 | }, 54 | "minimum-stability": "dev", 55 | "prefer-stable": true, 56 | "scripts": { 57 | "post-autoload-dump": [ 58 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 59 | "@php artisan package:discover --ansi" 60 | ], 61 | "post-root-package-install": [ 62 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 63 | ], 64 | "post-create-project-cmd": [ 65 | "@php artisan key:generate --ansi" 66 | ] 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'useTLS' => true, 41 | ], 42 | ], 43 | 44 | 'ably' => [ 45 | 'driver' => 'ably', 46 | 'key' => env('ABLY_KEY'), 47 | ], 48 | 49 | 'redis' => [ 50 | 'driver' => 'redis', 51 | 'connection' => 'default', 52 | ], 53 | 54 | 'log' => [ 55 | 'driver' => 'log', 56 | ], 57 | 58 | 'null' => [ 59 | 'driver' => 'null', 60 | ], 61 | 62 | ], 63 | 64 | ]; 65 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*', 'sanctum/csrf-cookie'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Filesystem Disks 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure as many filesystem "disks" as you wish, and you 24 | | may even configure multiple disks of the same driver. Defaults have 25 | | been setup for each driver as an example of the required options. 26 | | 27 | | Supported Drivers: "local", "ftp", "sftp", "s3" 28 | | 29 | */ 30 | 31 | 'disks' => [ 32 | 33 | 'local' => [ 34 | 'driver' => 'local', 35 | 'root' => storage_path('app'), 36 | ], 37 | 38 | 'public' => [ 39 | 'driver' => 'local', 40 | 'root' => storage_path('app/public'), 41 | 'url' => env('APP_URL').'/storage', 42 | 'visibility' => 'public', 43 | ], 44 | 45 | 's3' => [ 46 | 'driver' => 's3', 47 | 'key' => env('AWS_ACCESS_KEY_ID'), 48 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 49 | 'region' => env('AWS_DEFAULT_REGION'), 50 | 'bucket' => env('AWS_BUCKET'), 51 | 'url' => env('AWS_URL'), 52 | 'endpoint' => env('AWS_ENDPOINT'), 53 | ], 54 | 55 | ], 56 | 57 | /* 58 | |-------------------------------------------------------------------------- 59 | | Symbolic Links 60 | |-------------------------------------------------------------------------- 61 | | 62 | | Here you may configure the symbolic links that will be created when the 63 | | `storage:link` Artisan command is executed. The array keys should be 64 | | the locations of the links and the values should be their targets. 65 | | 66 | */ 67 | 68 | 'links' => [ 69 | public_path('storage') => storage_path('app/public'), 70 | ], 71 | 72 | ]; 73 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | 'block_for' => 0, 50 | ], 51 | 52 | 'sqs' => [ 53 | 'driver' => 'sqs', 54 | 'key' => env('AWS_ACCESS_KEY_ID'), 55 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 56 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 57 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 58 | 'suffix' => env('SQS_SUFFIX'), 59 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 60 | ], 61 | 62 | 'redis' => [ 63 | 'driver' => 'redis', 64 | 'connection' => 'default', 65 | 'queue' => env('REDIS_QUEUE', 'default'), 66 | 'retry_after' => 90, 67 | 'block_for' => null, 68 | ], 69 | 70 | ], 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Failed Queue Jobs 75 | |-------------------------------------------------------------------------- 76 | | 77 | | These options configure the behavior of failed queue job logging so you 78 | | can control which database and table are used to store the jobs that 79 | | have failed. You may change them to any database / table you wish. 80 | | 81 | */ 82 | 83 | 'failed' => [ 84 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 85 | 'database' => env('DB_CONNECTION', 'mysql'), 86 | 'table' => 'failed_jobs', 87 | ], 88 | 89 | ]; 90 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'postmark' => [ 24 | 'token' => env('POSTMARK_TOKEN'), 25 | ], 26 | 27 | 'ses' => [ 28 | 'key' => env('AWS_ACCESS_KEY_ID'), 29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 31 | ], 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-journal 3 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | $this->faker->name, 27 | 'email' => $this->faker->unique()->safeEmail, 28 | 'email_verified_at' => now(), 29 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 30 | 'remember_token' => Str::random(10), 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->timestamp('email_verified_at')->nullable(); 21 | $table->string('password'); 22 | $table->rememberToken(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('users'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('uuid')->unique(); 19 | $table->text('connection'); 20 | $table->text('queue'); 21 | $table->longText('payload'); 22 | $table->longText('exception'); 23 | $table->timestamp('failed_at')->useCurrent(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('failed_jobs'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | # For more information: https://laravel.com/docs/sail 2 | version: '3' 3 | services: 4 | laravel.test: 5 | build: 6 | context: ./vendor/laravel/sail/runtimes/8.0 7 | dockerfile: Dockerfile 8 | args: 9 | WWWGROUP: '${WWWGROUP}' 10 | image: sail-8.0/app 11 | ports: 12 | - '${APP_PORT:-80}:80' 13 | environment: 14 | WWWUSER: '${WWWUSER}' 15 | LARAVEL_SAIL: 1 16 | volumes: 17 | - '.:/var/www/html' 18 | networks: 19 | - sail 20 | depends_on: 21 | - mysql 22 | - redis 23 | # - selenium 24 | # selenium: 25 | # image: 'selenium/standalone-chrome' 26 | # volumes: 27 | # - '/dev/shm:/dev/shm' 28 | # networks: 29 | # - sail 30 | # depends_on: 31 | # - laravel.test 32 | mysql: 33 | image: 'mysql:8.0' 34 | ports: 35 | - '${FORWARD_DB_PORT:-3306}:3306' 36 | environment: 37 | MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}' 38 | MYSQL_DATABASE: '${DB_DATABASE}' 39 | MYSQL_USER: '${DB_USERNAME}' 40 | MYSQL_PASSWORD: '${DB_PASSWORD}' 41 | MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' 42 | volumes: 43 | - 'sailmysql:/var/lib/mysql' 44 | networks: 45 | - sail 46 | redis: 47 | image: 'redis:alpine' 48 | ports: 49 | - '${FORWARD_REDIS_PORT:-6379}:6379' 50 | volumes: 51 | - 'sailredis:/data' 52 | networks: 53 | - sail 54 | # memcached: 55 | # image: 'memcached:alpine' 56 | # ports: 57 | # - '11211:11211' 58 | # networks: 59 | # - sail 60 | mailhog: 61 | image: 'mailhog/mailhog:latest' 62 | ports: 63 | - 1025:1025 64 | - 8025:8025 65 | networks: 66 | - sail 67 | networks: 68 | sail: 69 | driver: bridge 70 | volumes: 71 | sailmysql: 72 | driver: local 73 | sailredis: 74 | driver: local 75 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "npm run development -- --watch", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.19", 14 | "cross-env": "^7.0", 15 | "laravel-mix": "^5.0.1", 16 | "lodash": "^4.17.19", 17 | "resolve-url-loader": "^3.1.0" 18 | }, 19 | "dependencies": { 20 | "@fortawesome/fontawesome-free": "^5.13.1", 21 | "bootstrap": "^4.0.0", 22 | "datatables.net-dt": "^1.10.21", 23 | "izitoast": "^1.4.0", 24 | "jquery": "^3.2", 25 | "jquery.nicescroll": "^3.7.6", 26 | "jsrender": "^1.0.5", 27 | "popper.js": "^1.12", 28 | "sass": "^1.15.2", 29 | "sass-loader": "^7.1.0", 30 | "select2": "^4.0.13", 31 | "sweetalert": "^1.1.3", 32 | "vue": "^2.5.17", 33 | "vue-template-compiler": "^2.6.12" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | ./tests/Unit 10 | 11 | 12 | ./tests/Feature 13 | 14 | 15 | 16 | 17 | ./app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /public/.gitignore: -------------------------------------------------------------------------------- 1 | /assets 2 | 3 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /public/css/app.css: -------------------------------------------------------------------------------- 1 | require('./bootstrap'); 2 | -------------------------------------------------------------------------------- /public/css/custom.css: -------------------------------------------------------------------------------- 1 | .tag { 2 | display: inline-block; 3 | } 4 | -------------------------------------------------------------------------------- /public/css/owl.theme.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Owl Carousel Owl Demo Theme 3 | * v1.3.3 4 | */ 5 | 6 | .owl-theme .owl-controls { 7 | margin-top: 10px; 8 | text-align: center; 9 | } 10 | 11 | /* Styling Next and Prev buttons */ 12 | 13 | .owl-theme .owl-controls .owl-buttons div { 14 | color: #FFF; 15 | display: inline-block; 16 | zoom: 1; 17 | *display: inline; /*IE7 life-saver */ 18 | margin: 5px; 19 | padding: 3px 10px; 20 | font-size: 12px; 21 | -webkit-border-radius: 30px; 22 | -moz-border-radius: 30px; 23 | border-radius: 30px; 24 | background: #869791; 25 | filter: Alpha(Opacity=50); /*IE7 fix*/ 26 | opacity: 0.5; 27 | } 28 | 29 | /* Clickable class fix problem with hover on touch devices */ 30 | /* Use it for non-touch hover action */ 31 | .owl-theme .owl-controls.clickable .owl-buttons div:hover { 32 | filter: Alpha(Opacity=100); /*IE7 fix*/ 33 | opacity: 1; 34 | text-decoration: none; 35 | } 36 | 37 | /* Styling Pagination*/ 38 | 39 | .owl-theme .owl-controls .owl-page { 40 | display: inline-block; 41 | zoom: 1; 42 | *display: inline; /*IE7 life-saver */ 43 | } 44 | 45 | .owl-theme .owl-controls .owl-page span { 46 | display: block; 47 | width: 12px; 48 | height: 12px; 49 | margin: 5px 7px; 50 | filter: Alpha(Opacity=50); /*IE7 fix*/ 51 | opacity: 0.5; 52 | -webkit-border-radius: 20px; 53 | -moz-border-radius: 20px; 54 | border-radius: 20px; 55 | background: #869791; 56 | } 57 | 58 | .owl-theme .owl-controls .owl-page.active span, 59 | .owl-theme .owl-controls.clickable .owl-page:hover span { 60 | filter: Alpha(Opacity=100); /*IE7 fix*/ 61 | opacity: 1; 62 | } 63 | 64 | /* If PaginationNumbers is true */ 65 | 66 | .owl-theme .owl-controls .owl-page span.owl-numbers { 67 | height: auto; 68 | width: auto; 69 | color: #FFF; 70 | padding: 2px 10px; 71 | font-size: 12px; 72 | -webkit-border-radius: 30px; 73 | -moz-border-radius: 30px; 74 | border-radius: 30px; 75 | } 76 | 77 | /* preloading images */ 78 | .owl-item.loading { 79 | min-height: 150px; 80 | background: url(AjaxLoader.gif) no-repeat center center 81 | } 82 | -------------------------------------------------------------------------------- /public/css/social-icons.css: -------------------------------------------------------------------------------- 1 | /* Generated by Glyphter (http://www.glyphter.com) on Thu Aug 11 2016*/ 2 | @font-face { 3 | font-family: 'social icons'; 4 | src: url('../fonts/social-icons.eot'); 5 | src: url('../fonts/social-icons.eot?#iefix') format('embedded-opentype'), 6 | url('../fonts/social-icons.woff') format('woff'), 7 | url('../fonts/social-icons.ttf') format('truetype'), 8 | url('../fonts/social-icons.svg#social-icons') format('svg'); 9 | font-weight: normal; 10 | font-style: normal; 11 | } 12 | 13 | [class*='icon-']:before { 14 | display: inline-block; 15 | font-family: 'social icons'; 16 | font-style: normal; 17 | font-weight: normal; 18 | line-height: 1; 19 | -webkit-font-smoothing: antialiased; 20 | -moz-osx-font-smoothing: grayscale 21 | } 22 | 23 | .icon-social_blogger_circle:before { 24 | content: '\0041'; 25 | } 26 | 27 | .icon-social_dribbble_circle:before { 28 | content: '\0042'; 29 | } 30 | 31 | .icon-social_facebook_circle:before { 32 | content: '\0043'; 33 | } 34 | 35 | .icon-social_github_circle:before { 36 | content: '\0044'; 37 | } 38 | 39 | .icon-social_googleplus_circle:before { 40 | content: '\0045'; 41 | } 42 | 43 | .icon-social_instagram_circle:before { 44 | content: '\0046'; 45 | } 46 | 47 | .icon-social_linkedin_circle:before { 48 | content: '\0047'; 49 | } 50 | 51 | .icon-social_twitter_circle:before { 52 | content: '\0048'; 53 | } 54 | 55 | .icon-social_twitter:before { 56 | content: '\0049'; 57 | } 58 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/public/favicon.ico -------------------------------------------------------------------------------- /public/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/public/img/logo.png -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = tap($kernel->handle( 52 | $request = Request::capture() 53 | ))->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /public/web/css/custom.css: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * You can write your CSS code here, DO NOT touch the default JavaScript file 4 | * because it will make it harder for you to update. 5 | * 6 | */ 7 | 8 | /*# sourceMappingURL=custom.css.map */ 9 | -------------------------------------------------------------------------------- /public/web/css/custom.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sourceRoot":"","sources":["../../sources/scss/custom.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","file":"custom.css"} -------------------------------------------------------------------------------- /public/web/css/reverse.css: -------------------------------------------------------------------------------- 1 | body.skin-reverse.sidebar-mini .main-sidebar:after { 2 | background-color: color(primary); } 3 | 4 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li.active > a { 5 | background-color: #fff; 6 | box-shadow: none; 7 | color: color(primary); } 8 | 9 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li.active ul.dropdown-menu li a, 10 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li ul.dropdown-menu li a { 11 | background-color: transparent; 12 | color: color_lighten(font, 10%); } 13 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li.active ul.dropdown-menu li a:hover, 14 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover { 15 | background-color: color_lighten(light, 7.6%); 16 | color: color(dark); } 17 | 18 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li.active ul.dropdown-menu li.active a, 19 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li ul.dropdown-menu li.active a { 20 | background-color: transparent !important; 21 | color: color(primary); } 22 | 23 | body.skin-reverse .main-sidebar { 24 | background-color: color(primary); } 25 | body.skin-reverse .main-sidebar .sidebar-brand a { 26 | color: #fff; } 27 | body.skin-reverse .main-sidebar .sidebar-menu li a { 28 | color: color_lighten(primary, 25%); } 29 | body.skin-reverse .main-sidebar .sidebar-menu li a:hover { 30 | background-color: #6070e5; } 31 | body.skin-reverse .main-sidebar .sidebar-menu li.active a, 32 | body.skin-reverse .main-sidebar .sidebar-menu li.active a:hover, 33 | body.skin-reverse .main-sidebar .sidebar-menu li.active ul.dropdown-menu li a:hover, 34 | body.skin-reverse .main-sidebar .sidebar-menu li.active ul.dropdown-menu li a { 35 | background-color: #6070e5; } 36 | body.skin-reverse .main-sidebar .sidebar-menu li.menu-header { 37 | color: #afb7ff; } 38 | body.skin-reverse .main-sidebar .sidebar-menu li ul.dropdown-menu li a { 39 | color: color_lighten(primary, 25%); } 40 | body.skin-reverse .main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover { 41 | background-color: color(primary); 42 | color: #fff; } 43 | body.skin-reverse .main-sidebar .sidebar-menu li ul.dropdown-menu li.active a { 44 | color: #fff; } 45 | 46 | body.skin-reverse .navbar-bg, 47 | body.skin-reverse .navbar { 48 | background-color: #fff; } 49 | body.skin-reverse .navbar-bg .nav-link.nav-link-user, 50 | body.skin-reverse .navbar-bg .nav-link, 51 | body.skin-reverse .navbar .nav-link.nav-link-user, 52 | body.skin-reverse .navbar .nav-link { 53 | color: #000; } 54 | body.skin-reverse .navbar-bg .nav-link.nav-link-user:hover, 55 | body.skin-reverse .navbar-bg .nav-link:hover, 56 | body.skin-reverse .navbar .nav-link.nav-link-user:hover, 57 | body.skin-reverse .navbar .nav-link:hover { 58 | color: #1a1a1a; } 59 | body.skin-reverse .navbar-bg .form-inline .btn, 60 | body.skin-reverse .navbar-bg .form-inline .form-control, 61 | body.skin-reverse .navbar .form-inline .btn, 62 | body.skin-reverse .navbar .form-inline .form-control { 63 | background-color: color_lighten(primary, 31.5%); } 64 | -------------------------------------------------------------------------------- /public/web/css/skins/reverse.css: -------------------------------------------------------------------------------- 1 | body.skin-reverse.sidebar-mini .main-sidebar:after { 2 | background-color: #6777ef; 3 | } 4 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li.active > a { 5 | background-color: #fff; 6 | box-shadow: none; 7 | color: #6777ef; 8 | } 9 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li.active ul.dropdown-menu li a, 10 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li ul.dropdown-menu li a { 11 | background-color: transparent; 12 | color: #868e96; 13 | } 14 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li.active ul.dropdown-menu li a:hover, 15 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover { 16 | background-color: #fcfcfd; 17 | color: #191d21; 18 | } 19 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li.active ul.dropdown-menu li.active a, 20 | body.skin-reverse.sidebar-mini .main-sidebar .sidebar-menu li ul.dropdown-menu li.active a { 21 | background-color: transparent !important; 22 | color: #6777ef; 23 | } 24 | body.skin-reverse .main-sidebar { 25 | background-color: #6777ef; 26 | } 27 | body.skin-reverse .main-sidebar .sidebar-brand a { 28 | color: #fff; 29 | } 30 | body.skin-reverse .main-sidebar .sidebar-menu li a { 31 | color: #dadefb; 32 | } 33 | body.skin-reverse .main-sidebar .sidebar-menu li a:hover { 34 | background-color: #6070e5; 35 | } 36 | body.skin-reverse .main-sidebar .sidebar-menu li.active a, 37 | body.skin-reverse .main-sidebar .sidebar-menu li.active a:hover, 38 | body.skin-reverse .main-sidebar .sidebar-menu li.active ul.dropdown-menu li a:hover, 39 | body.skin-reverse .main-sidebar .sidebar-menu li.active ul.dropdown-menu li a { 40 | background-color: #6070e5; 41 | } 42 | body.skin-reverse .main-sidebar .sidebar-menu li.menu-header { 43 | color: #afb7ff; 44 | } 45 | body.skin-reverse .main-sidebar .sidebar-menu li ul.dropdown-menu li a { 46 | color: #dadefb; 47 | } 48 | body.skin-reverse .main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover { 49 | background-color: #6777ef; 50 | color: #fff; 51 | } 52 | body.skin-reverse .main-sidebar .sidebar-menu li ul.dropdown-menu li.active a { 53 | color: #fff; 54 | } 55 | body.skin-reverse .navbar-bg, 56 | body.skin-reverse .navbar { 57 | background-color: #fff; 58 | } 59 | body.skin-reverse .navbar-bg .nav-link.nav-link-user, 60 | body.skin-reverse .navbar-bg .nav-link, 61 | body.skin-reverse .navbar .nav-link.nav-link-user, 62 | body.skin-reverse .navbar .nav-link { 63 | color: #000; 64 | } 65 | body.skin-reverse .navbar-bg .nav-link.nav-link-user:hover, 66 | body.skin-reverse .navbar-bg .nav-link:hover, 67 | body.skin-reverse .navbar .nav-link.nav-link-user:hover, 68 | body.skin-reverse .navbar .nav-link:hover { 69 | color: #1a1a1a; 70 | } 71 | body.skin-reverse .navbar-bg .form-inline .btn, 72 | body.skin-reverse .navbar-bg .form-inline .form-control, 73 | body.skin-reverse .navbar .form-inline .btn, 74 | body.skin-reverse .navbar .form-inline .form-control { 75 | background-color: #f8f9fe; 76 | } 77 | 78 | /*# sourceMappingURL=reverse.css.map */ 79 | -------------------------------------------------------------------------------- /public/web/css/skins/reverse.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sourceRoot":"","sources":["../../../sources/scss/skins/reverse.scss"],"names":[],"mappings":"AAMM;EACE;;AAKI;EACE;EACA;EACA;;AAMA;AAAA;EACE;EACA;;AACA;AAAA;EACI;EACA;;AAIJ;AAAA;EACE;EACA;;AAShB;EACE;;AAEE;EACE;;AAKA;EACE;;AACA;EACE;;AAIF;AAAA;AAAA;AAAA;EAIE;;AAGJ;EACE;;AAIE;EACE;;AACA;EACE;EACA;;AAIF;EACE;;AASd;AAAA;EAEE;;AACA;AAAA;AAAA;AAAA;EAEE;;AACA;AAAA;AAAA;AAAA;EACE;;AAKF;AAAA;AAAA;AAAA;EAEE","file":"reverse.css"} -------------------------------------------------------------------------------- /public/web/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/public/web/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /public/web/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/public/web/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/web/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/public/web/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/web/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/public/web/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/web/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/public/web/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /public/web/js/custom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * You can write your JS code here, DO NOT touch the default style file 4 | * because it will make it harder for you to update. 5 | * 6 | */ 7 | 8 | "use strict"; 9 | -------------------------------------------------------------------------------- /public/web/js/jquery.inview.min.js: -------------------------------------------------------------------------------- 1 | !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function i(){var b,c,d={height:f.innerHeight,width:f.innerWidth};return d.height||(b=e.compatMode,(b||!a.support.boxModel)&&(c="CSS1Compat"===b?g:e.body,d={height:c.clientHeight,width:c.clientWidth})),d}function j(){return{top:f.pageYOffset||g.scrollTop||e.body.scrollTop,left:f.pageXOffset||g.scrollLeft||e.body.scrollLeft}}function k(){if(b.length){var e=0,f=a.map(b,function(a){var b=a.data.selector,c=a.$element;return b?c.find(b):c});for(c=c||i(),d=d||j();ed.top&&l.topd.left&&l.leftget('skip')) { 21 | $query->skip($request->get('skip')); 22 | } 23 | if ($request->get('limit')) { 24 | $query->limit($request->get('limit')); 25 | } 26 | 27 | $$MODEL_NAME_PLURAL_CAMEL$ = $query->get(); 28 | 29 | return $this->sendResponse($$MODEL_NAME_PLURAL_CAMEL$->toArray(), '$MODEL_NAME_PLURAL_HUMAN$ retrieved successfully'); 30 | } 31 | 32 | $DOC_STORE$ 33 | public function store(Create$MODEL_NAME$APIRequest $request) 34 | { 35 | $input = $request->all(); 36 | 37 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */ 38 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::create($input); 39 | 40 | return $this->sendResponse($$MODEL_NAME_CAMEL$->toArray(), '$MODEL_NAME_HUMAN$ saved successfully'); 41 | } 42 | 43 | $DOC_SHOW$ 44 | public function show($id) 45 | { 46 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */ 47 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id); 48 | 49 | if (empty($$MODEL_NAME_CAMEL$)) { 50 | return $this->sendError('$MODEL_NAME_HUMAN$ not found'); 51 | } 52 | 53 | return $this->sendResponse($$MODEL_NAME_CAMEL$->toArray(), '$MODEL_NAME_HUMAN$ retrieved successfully'); 54 | } 55 | 56 | $DOC_UPDATE$ 57 | public function update($id, Update$MODEL_NAME$APIRequest $request) 58 | { 59 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */ 60 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id); 61 | 62 | if (empty($$MODEL_NAME_CAMEL$)) { 63 | return $this->sendError('$MODEL_NAME_HUMAN$ not found'); 64 | } 65 | 66 | $$MODEL_NAME_CAMEL$->fill($request->all()); 67 | $$MODEL_NAME_CAMEL$->save(); 68 | 69 | return $this->sendResponse($$MODEL_NAME_CAMEL$->toArray(), '$MODEL_NAME$ updated successfully'); 70 | } 71 | 72 | $DOC_DESTROY$ 73 | public function destroy($id) 74 | { 75 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */ 76 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id); 77 | 78 | if (empty($$MODEL_NAME_CAMEL$)) { 79 | return $this->sendError('$MODEL_NAME_HUMAN$ not found'); 80 | } 81 | 82 | $$MODEL_NAME_CAMEL$->delete(); 83 | 84 | return $this->sendSuccess('$MODEL_NAME_HUMAN$ deleted successfully'); 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/api/controller/model_api_controller_resource.stub: -------------------------------------------------------------------------------- 1 | get('skip')) { 22 | $query->skip($request->get('skip')); 23 | } 24 | if ($request->get('limit')) { 25 | $query->limit($request->get('limit')); 26 | } 27 | 28 | $$MODEL_NAME_PLURAL_CAMEL$ = $query->get(); 29 | 30 | return $this->sendResponse($MODEL_NAME$Resource::collection($$MODEL_NAME_PLURAL_CAMEL$), '$MODEL_NAME_PLURAL_HUMAN$ retrieved successfully'); 31 | } 32 | 33 | $DOC_STORE$ 34 | public function store(Create$MODEL_NAME$APIRequest $request) 35 | { 36 | $input = $request->all(); 37 | 38 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */ 39 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::create($input); 40 | 41 | return $this->sendResponse(new $MODEL_NAME$Resource($$MODEL_NAME_CAMEL$), '$MODEL_NAME_HUMAN$ saved successfully'); 42 | } 43 | 44 | $DOC_SHOW$ 45 | public function show($id) 46 | { 47 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */ 48 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id); 49 | 50 | if (empty($$MODEL_NAME_CAMEL$)) { 51 | return $this->sendError('$MODEL_NAME_HUMAN$ not found'); 52 | } 53 | 54 | return $this->sendResponse(new $MODEL_NAME$Resource($$MODEL_NAME_CAMEL$), '$MODEL_NAME_HUMAN$ retrieved successfully'); 55 | } 56 | 57 | $DOC_UPDATE$ 58 | public function update($id, Update$MODEL_NAME$APIRequest $request) 59 | { 60 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */ 61 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id); 62 | 63 | if (empty($$MODEL_NAME_CAMEL$)) { 64 | return $this->sendError('$MODEL_NAME_HUMAN$ not found'); 65 | } 66 | 67 | $$MODEL_NAME_CAMEL$->fill($request->all()); 68 | $$MODEL_NAME_CAMEL$->save(); 69 | 70 | return $this->sendResponse(new $MODEL_NAME$Resource($$MODEL_NAME_CAMEL$), '$MODEL_NAME$ updated successfully'); 71 | } 72 | 73 | $DOC_DESTROY$ 74 | public function destroy($id) 75 | { 76 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */ 77 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id); 78 | 79 | if (empty($$MODEL_NAME_CAMEL$)) { 80 | return $this->sendError('$MODEL_NAME_HUMAN$ not found'); 81 | } 82 | 83 | $$MODEL_NAME_CAMEL$->delete(); 84 | 85 | return $this->sendSuccess('$MODEL_NAME_HUMAN$ deleted successfully'); 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/api/docs/controller/controller.stub: -------------------------------------------------------------------------------- 1 | /** 2 | * Class $MODEL_NAME$Controller 3 | * @package $NAMESPACE_API_CONTROLLER$ 4 | */ 5 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/api/docs/controller/destroy.stub: -------------------------------------------------------------------------------- 1 | /** 2 | * Remove the specified $MODEL_NAME$ from storage. 3 | * DELETE /$MODEL_NAME_PLURAL_CAMEL$/{id} 4 | * 5 | * @param int $id 6 | * 7 | * @throws \Exception 8 | * 9 | * @return Response 10 | */ -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/api/docs/controller/index.stub: -------------------------------------------------------------------------------- 1 | /** 2 | * Display a listing of the $MODEL_NAME$. 3 | * GET|HEAD /$MODEL_NAME_PLURAL_CAMEL$ 4 | * 5 | * @param Request $request 6 | * @return Response 7 | */ -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/api/docs/controller/show.stub: -------------------------------------------------------------------------------- 1 | /** 2 | * Display the specified $MODEL_NAME$. 3 | * GET|HEAD /$MODEL_NAME_PLURAL_CAMEL$/{id} 4 | * 5 | * @param int $id 6 | * 7 | * @return Response 8 | */ -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/api/docs/controller/store.stub: -------------------------------------------------------------------------------- 1 | /** 2 | * Store a newly created $MODEL_NAME$ in storage. 3 | * POST /$MODEL_NAME_PLURAL_CAMEL$ 4 | * 5 | * @param Create$MODEL_NAME$APIRequest $request 6 | * 7 | * @return Response 8 | */ -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/api/docs/controller/update.stub: -------------------------------------------------------------------------------- 1 | /** 2 | * Update the specified $MODEL_NAME$ in storage. 3 | * PUT/PATCH /$MODEL_NAME_PLURAL_CAMEL$/{id} 4 | * 5 | * @param int $id 6 | * @param Update$MODEL_NAME$APIRequest $request 7 | * 8 | * @return Response 9 | */ -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/api/request/create_request.stub: -------------------------------------------------------------------------------- 1 | '$RAW_ROUTE_PREFIX$'], function () { 2 | Route::resource('$MODEL_NAME_PLURAL_SNAKE$', $NAMESPACE_API_CONTROLLER$\$MODEL_NAME$APIController::class); 3 | }); 4 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/api/routes/routes.stub: -------------------------------------------------------------------------------- 1 | Route::resource('$MODEL_NAME_PLURAL_SNAKE$', $NAMESPACE_API_CONTROLLER$\$MODEL_NAME$APIController::class); 2 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/api/test/api_test.stub: -------------------------------------------------------------------------------- 1 | make()->toArray(); 19 | 20 | $this->response = $this->json( 21 | 'POST', 22 | '/$API_PREFIX$/$ROUTE_PREFIX$$MODEL_NAME_PLURAL_SNAKE$', $$MODEL_NAME_CAMEL$ 23 | ); 24 | 25 | $this->assertApiResponse($$MODEL_NAME_CAMEL$); 26 | } 27 | 28 | /** 29 | * @test 30 | */ 31 | public function test_read_$MODEL_NAME_SNAKE$() 32 | { 33 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create(); 34 | 35 | $this->response = $this->json( 36 | 'GET', 37 | '/$API_PREFIX$/$ROUTE_PREFIX$$MODEL_NAME_PLURAL_SNAKE$/'.$$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$ 38 | ); 39 | 40 | $this->assertApiResponse($$MODEL_NAME_CAMEL$->toArray()); 41 | } 42 | 43 | /** 44 | * @test 45 | */ 46 | public function test_update_$MODEL_NAME_SNAKE$() 47 | { 48 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create(); 49 | $edited$MODEL_NAME$ = $MODEL_NAME$::factory()->make()->toArray(); 50 | 51 | $this->response = $this->json( 52 | 'PUT', 53 | '/$API_PREFIX$/$ROUTE_PREFIX$$MODEL_NAME_PLURAL_SNAKE$/'.$$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$, 54 | $edited$MODEL_NAME$ 55 | ); 56 | 57 | $this->assertApiResponse($edited$MODEL_NAME$); 58 | } 59 | 60 | /** 61 | * @test 62 | */ 63 | public function test_delete_$MODEL_NAME_SNAKE$() 64 | { 65 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create(); 66 | 67 | $this->response = $this->json( 68 | 'DELETE', 69 | '/$API_PREFIX$/$ROUTE_PREFIX$$MODEL_NAME_PLURAL_SNAKE$/'.$$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$ 70 | ); 71 | 72 | $this->assertApiSuccess(); 73 | $this->response = $this->json( 74 | 'GET', 75 | '/$API_PREFIX$/$ROUTE_PREFIX$$MODEL_NAME_PLURAL_SNAKE$/'.$$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$ 76 | ); 77 | 78 | $this->response->assertStatus(404); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/app_base_controller.stub: -------------------------------------------------------------------------------- 1 | true, 35 | 'message' => $message 36 | ], 200); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/docs/model.stub: -------------------------------------------------------------------------------- 1 | /** 2 | * Class $MODEL_NAME$ 3 | * @package $NAMESPACE_MODEL$ 4 | * @version $GENERATE_DATE$ 5 | * 6 | $PHPDOC$ */ -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/docs/repository.stub: -------------------------------------------------------------------------------- 1 | /** 2 | * Class $MODEL_NAME$Repository 3 | * @package $NAMESPACE_REPOSITORY$ 4 | * @version $GENERATE_DATE$ 5 | */ 6 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/factories/model_factory.stub: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Http\Response 23 | */ 24 | public function index() 25 | { 26 | return view('home'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/migration.stub: -------------------------------------------------------------------------------- 1 | $RELATION$(\$NAMESPACE_MODEL$\$RELATION_MODEL_NAME$::class$INPUT_FIELDS$); 7 | } -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/repository.stub: -------------------------------------------------------------------------------- 1 | fieldSearchable; 26 | } 27 | 28 | /** 29 | * Configure the Model 30 | **/ 31 | public function model() 32 | { 33 | return $MODEL_NAME$::class; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/routes/user.stub: -------------------------------------------------------------------------------- 1 | Route::resource('users', 'UserController')->middleware('auth'); 2 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/auth/email.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth_app') 2 | @section('title') 3 | Forgot Password 4 | @endsection 5 | @section('content') 6 |
7 |

Reset Password

8 | 9 |
10 | @if (session('status')) 11 |
12 | {{ session('status') }} 13 |
14 | @endif 15 |
16 | @csrf 17 |
18 | 19 | 21 |
22 | {{ $errors->first('email') }} 23 |
24 |
25 |
26 | 29 |
30 |
31 |
32 |
33 |
34 | Recalled your login info? Sign In 35 |
36 | @endsection 37 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/auth/reset.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth_app') 2 | @section('title') 3 | Reset Password 4 | @endsection 5 | @section('content') 6 |
7 |

Set a New Password

8 | 9 |
10 |
11 | @csrf 12 | @if ($errors->any()) 13 |
14 |
    15 | @foreach ($errors->all() as $error) 16 |
  • {{ $error }}
  • 17 | @endforeach 18 |
19 |
20 | @endif 21 | 22 |
23 | 24 | 26 |
27 | {{ $errors->first('email') }} 28 |
29 |
30 |
31 | 32 | 35 |
36 | {{ $errors->first('password') }} 37 |
38 |
39 |
40 | 41 | 44 |
45 | {{ $errors->first('password_confirmation') }} 46 |
47 |
48 |
49 | 52 |
53 |
54 |
55 |
56 |
57 | Recalled your login info? Sign In 58 |
59 | @endsection 60 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/auth/verify.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |

Verify Your Email Address

9 | 10 |
11 | @if (session('resent')) 12 | 15 | @endif 16 |

Before proceeding, please check your email for a verification link.If you did not receive 17 | the email,

18 | click here to request another'. 19 |
20 |
21 |
22 |
23 |
24 | @endsection -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/auth/verify_6.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |

Verify Your Email Address

9 | 10 |
11 | @if (session('resent')) 12 | 15 | @endif 16 |

Before proceeding, please check your email for a verification link.If you did not receive 17 | the email,

18 | click here to request another'. 19 |
20 |
21 |
22 |
23 |
24 | @endsection 25 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/datatable.stub: -------------------------------------------------------------------------------- 1 | addColumn('action', '$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.datatables_actions'); 22 | } 23 | 24 | /** 25 | * Get query source of dataTable. 26 | * 27 | * @param \App\Models\$MODEL_NAME$ $model 28 | * @return \Illuminate\Database\Eloquent\Builder 29 | */ 30 | public function query($MODEL_NAME$ $model) 31 | { 32 | return $model->newQuery(); 33 | } 34 | 35 | /** 36 | * Optional method if you want to use html builder. 37 | * 38 | * @return \Yajra\DataTables\Html\Builder 39 | */ 40 | public function html() 41 | { 42 | return $this->builder() 43 | ->columns($this->getColumns()) 44 | ->minifiedAjax() 45 | ->addAction(['width' => '120px', 'printable' => false]) 46 | ->parameters([ 47 | 'dom' => 'Bfrtip', 48 | 'stateSave' => true, 49 | 'order' => [[0, 'desc']], 50 | 'buttons' => [ 51 | ['extend' => 'create', 'className' => 'btn btn-default btn-sm no-corner',], 52 | ['extend' => 'export', 'className' => 'btn btn-default btn-sm no-corner',], 53 | ['extend' => 'print', 'className' => 'btn btn-default btn-sm no-corner',], 54 | ['extend' => 'reset', 'className' => 'btn btn-default btn-sm no-corner',], 55 | ['extend' => 'reload', 'className' => 'btn btn-default btn-sm no-corner',], 56 | ], 57 | ]); 58 | } 59 | 60 | /** 61 | * Get columns. 62 | * 63 | * @return array 64 | */ 65 | protected function getColumns() 66 | { 67 | return [ 68 | $DATATABLE_COLUMNS$ 69 | ]; 70 | } 71 | 72 | /** 73 | * Get filename for export. 74 | * 75 | * @return string 76 | */ 77 | protected function filename() 78 | { 79 | return '$MODEL_NAME_PLURAL_SNAKE$_datatable_' . time(); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/emails/password.stub: -------------------------------------------------------------------------------- 1 | Click here to reset your password: {{ $link }} 2 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/emails/password_locale.stub: -------------------------------------------------------------------------------- 1 | @lang('auth.emails.password.reset_link'): {{ $link }} 2 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/boolean.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | 8 |
9 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/boolean_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | 8 |
9 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/checkbox.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | 8 |
9 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/checkbox_group.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | $CHECKBOXES$ 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/checkbox_group_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | $CHECKBOXES$ 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/checkbox_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | 8 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/date.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | {!! Form::text('$FIELD_NAME$', null, ['class' => 'form-control','id'=>'$FIELD_NAME$']) !!} 5 |
6 | 7 | @push('scripts') 8 | 15 | @endpush -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/date_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | {!! Form::date('$FIELD_NAME$', null, ['class' => 'form-control','id'=>'$FIELD_NAME$']) !!} 5 |
6 | 7 | @push('scripts') 8 | 14 | @endpush -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/email.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | {!! Form::email('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/email_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | {!! Form::email('$FIELD_NAME$', null, ['class' => 'form-control']) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/file.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | {!! Form::file('$FIELD_NAME$') !!} 5 |
6 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/file_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | {!! Form::file('$FIELD_NAME$') !!} 5 |
6 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/number.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | {!! Form::number('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/number_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | {!! Form::number('$FIELD_NAME$', null, ['class' => 'form-control']) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/password.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | {!! Form::password('$FIELD_NAME$', ['class' => 'form-control'$SIZE$]) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/password_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | {!! Form::password('$FIELD_NAME$', ['class' => 'form-control']) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/radio.stub: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/radio_group.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | $RADIO_BUTTONS$ 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/radio_group_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | $RADIO_BUTTONS$ 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/select.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | {!! Form::select('$FIELD_NAME$', $INPUT_ARR$, null, ['class' => 'form-control']) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/select_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | {!! Form::select('$FIELD_NAME$', $INPUT_ARR$, null, ['class' => 'form-control']) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/text.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | {!! Form::text('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/text_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | {!! Form::text('$FIELD_NAME$', null, ['class' => 'form-control']) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/text_modal_locale.stub: -------------------------------------------------------------------------------- 1 |
2 | {{ Form::label('$FIELD_NAME$','$FIELD_NAME_TITLE$:') }}* 3 | {{ Form::text('$FIELD_NAME$', null, ['class' => 'form-control', 'placeholder' => '$FIELD_NAME_TITLE$', 'required']) }} 4 |
5 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/textarea.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 | {!! Form::textarea('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/textarea_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | {!! Form::textarea('$FIELD_NAME$', null, ['class' => 'form-control']) !!} 5 |
-------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/toggle-switch.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 9 |
10 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/fields/toggle-switch_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 | 8 |
9 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/jquery.stub: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | let tableName = '#$MODEL_NAME_PLURAL_CAMEL$Table'; 4 | $(tableName).DataTable({ 5 | scrollX: true, 6 | deferRender: true, 7 | scroller: true, 8 | processing: true, 9 | serverSide: true, 10 | 'order': [[0, 'asc']], 11 | ajax: { 12 | url: recordsURL, 13 | }, 14 | columnDefs: [ 15 | { 16 | 'targets': [$ACTION_COLUMN_COUNT$], 17 | 'orderable': false, 18 | 'className': 'text-center', 19 | 'width': '8%', 20 | }, 21 | ], 22 | columns: [ 23 | $JQUERY_FIELDS$ 24 | { 25 | data: function (row) { 26 | let url = recordsURL + row.id; 27 | let data = [ 28 | { 29 | 'id': row.id, 30 | 'url': url + '/edit', 31 | }]; 32 | 33 | return prepareTemplateRender('#$MODEL_NAME_PLURAL_CAMEL$Template', 34 | data); 35 | }, name: 'id', 36 | }, 37 | ], 38 | }); 39 | 40 | $(document).on('click', '.delete-btn', function (event) { 41 | let recordId = $(event.currentTarget).data('id'); 42 | deleteItem(recordsURL + recordId, tableName, '$MODEL_NAME_HUMAN$'); 43 | }); 44 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/jquery_datatable.stub: -------------------------------------------------------------------------------- 1 | select('$TABLE_NAME$.*'); 19 | 20 | return $query; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/jquery_datatable_locale.stub: -------------------------------------------------------------------------------- 1 | select('$TABLE_NAME$.*'); 19 | 20 | return $query; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/js_modal_renderer_template.stub: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/js_renderer_template.stub: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/layouts/datatables_css.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/resources/infyom/infyom-generator-templates/scaffold/layouts/datatables_css.stub -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/layouts/datatables_js.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/resources/infyom/infyom-generator-templates/scaffold/layouts/datatables_js.stub -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/layouts/footer.stub: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/layouts/header.stub: -------------------------------------------------------------------------------- 1 |
2 | 5 |
6 | 54 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/layouts/home.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/resources/infyom/infyom-generator-templates/scaffold/layouts/home.stub -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/layouts/menu.stub: -------------------------------------------------------------------------------- 1 |
  • 2 | 3 | Dashboard 4 | 5 |
  • 6 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/layouts/menu_template.stub: -------------------------------------------------------------------------------- 1 |
  • 2 | $MODEL_NAME_PLURAL_HUMAN$ 3 |
  • 4 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/layouts/menu_template_locale.stub: -------------------------------------------------------------------------------- 1 |
  • 2 | @lang('models/$MODEL_NAME_PLURAL_CAMEL$.plural') 3 |
  • 4 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/layouts/sidebar.stub: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/layouts/sidebar_locale.stub: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/request/create_request.stub: -------------------------------------------------------------------------------- 1 | '$RAW_ROUTE_PREFIX$'], function () { 2 | Route::resource('$MODEL_NAME_PLURAL_CAMEL$', $NAMESPACE_CONTROLLER$\$MODEL_NAME$Controller::class, ["as" => '$RAW_ROUTE_PREFIX$']); 3 | }); 4 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/routes/routes.stub: -------------------------------------------------------------------------------- 1 | Route::resource('$MODEL_NAME_PLURAL_CAMEL$', $NAMESPACE_CONTROLLER$\$MODEL_NAME$Controller::class); 2 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/view_composer.stub: -------------------------------------------------------------------------------- 1 | View::composer(['$COMPOSER_VIEWS$'], function ($view) { 2 | $$COMPOSER_VIEW_VARIABLE$ = $COMPOSER_VIEW_VARIABLE_VALUES$; 3 | $view->with('$COMPOSER_VIEW_VARIABLE$', $$COMPOSER_VIEW_VARIABLE$); 4 | }); -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/blade_table_body.stub: -------------------------------------------------------------------------------- 1 |
    2 | 3 | 4 | 5 | $FIELD_HEADERS$ 6 | 7 | 8 | 9 | 10 | @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$) 11 | 12 | $FIELD_BODY$ 13 | 22 | 23 | @endforeach 24 | 25 |
    Action
    14 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} 15 |
    16 | 17 | 18 | {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger action-btn delete-btn', 'onclick' => 'return confirm("Are you sure want to delete this record ?")']) !!} 19 |
    20 | {!! Form::close() !!} 21 |
    26 |
    27 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/blade_table_body_locale.stub: -------------------------------------------------------------------------------- 1 |
    2 | 3 | 4 | 5 | $FIELD_HEADERS$ 6 | 7 | 8 | 9 | 10 | @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$) 11 | 12 | $FIELD_BODY$ 13 | 22 | 23 | 24 | @endforeach 25 | 26 |
    @lang('crud.action')
    14 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} 15 |
    16 | 17 | 18 | {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger action-btn delete-btn', 'onclick' => 'return confirm("'.__('crud.are_you_sure').'")']) !!} 19 |
    20 | {!! Form::close() !!} 21 |
    27 |
    28 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/create.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | Create $MODEL_NAME_HUMAN$ 4 | @endsection 5 | @section('content') 6 |
    7 |
    8 |

    New $MODEL_NAME_HUMAN$

    9 |
    10 | Back 11 |
    12 |
    13 |
    14 | @include('stisla-templates::common.errors') 15 |
    16 |
    17 |
    18 |
    19 |
    20 | {!! Form::open(['route' => '$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.store'$FILES$]) !!} 21 |
    22 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields') 23 |
    24 | {!! Form::close() !!} 25 |
    26 |
    27 |
    28 |
    29 |
    30 |
    31 |
    32 | @endsection 33 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/create_locale.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | @lang('crud.add_new') @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular') 4 | @endsection 5 | @section('content') 6 |
    7 |
    8 |

    @lang('crud.add_new') @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular')

    9 |
    10 | @lang('crud.back') 11 |
    12 |
    13 |
    14 | @include('stisla-templates::common.errors') 15 |
    16 |
    17 |
    18 |
    19 |
    20 | {!! Form::open(['route' => '$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.store'$FILES$]) !!} 21 |
    22 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields') 23 |
    24 | {!! Form::close() !!} 25 |
    26 |
    27 |
    28 |
    29 |
    30 |
    31 |
    32 | @endsection 33 | 34 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/datatable_body.stub: -------------------------------------------------------------------------------- 1 | @section('css') 2 | @include('layouts.datatables_css') 3 | @endsection 4 | 5 | {!! $dataTable->table(['width' => '100%', 'class' => 'table table-striped table-bordered']) !!} 6 | 7 | @push('scripts') 8 | @include('layouts.datatables_js') 9 | {!! $dataTable->scripts() !!} 10 | @endpush -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/datatable_column.stub: -------------------------------------------------------------------------------- 1 | '$FIELD_NAME$' -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/datatable_column_locale.stub: -------------------------------------------------------------------------------- 1 | '$FIELD_NAME$' => new Column(['title' => __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$'), 'data' => '$FIELD_NAME$'$SEARCHABLE$]) -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/datatables_actions.stub: -------------------------------------------------------------------------------- 1 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} 2 |
    3 | 4 | 5 | 6 | 7 | 8 | 9 | {!! Form::button('', [ 10 | 'type' => 'submit', 11 | 'class' => 'btn btn-danger btn-xs', 12 | 'onclick' => "return confirm('Are you sure?')" 13 | ]) !!} 14 |
    15 | {!! Form::close() !!} 16 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/datatables_actions_locale.stub: -------------------------------------------------------------------------------- 1 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} 2 |
    3 | 4 | 5 | 6 | 7 | 8 | 9 | {!! Form::button('', [ 10 | 'type' => 'submit', 11 | 'class' => 'btn btn-danger btn-xs', 12 | 'onclick' => 'return confirm("'.__('crud.are_you_sure').'")' 13 | ]) !!} 14 |
    15 | {!! Form::close() !!} 16 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/edit.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | Edit $MODEL_NAME_HUMAN$ 4 | @endsection 5 | @section('content') 6 |
    7 |
    8 |

    Edit $MODEL_NAME_HUMAN$

    9 |
    10 | Back 11 |
    12 |
    13 |
    14 | @include('stisla-templates::common.errors') 15 |
    16 |
    17 |
    18 |
    19 |
    20 | {!! Form::model($$MODEL_NAME_CAMEL$, ['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.update', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'patch'$FILES$]) !!} 21 |
    22 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields') 23 |
    24 | 25 | {!! Form::close() !!} 26 |
    27 |
    28 |
    29 |
    30 |
    31 |
    32 |
    33 | @endsection 34 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/edit_locale.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | @lang('crud.edit') @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular') 4 | @endsection 5 | @section('content') 6 |
    7 |
    8 |

    @lang('crud.edit') @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular')

    9 |
    10 | @lang('crud.back') 11 |
    12 |
    13 |
    14 | @include('stisla-templates::common.errors') 15 |
    16 |
    17 |
    18 |
    19 |
    20 | {!! Form::model($$MODEL_NAME_CAMEL$, ['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.update', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'patch'$FILES$]) !!} 21 |
    22 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields') 23 |
    24 | 25 | {!! Form::close() !!} 26 |
    27 |
    28 |
    29 |
    30 |
    31 |
    32 |
    33 | @endsection 34 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/fields.stub: -------------------------------------------------------------------------------- 1 | $FIELDS$ 2 | 3 | 4 |
    5 | {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!} 6 | Cancel 7 |
    8 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/fields_locale.stub: -------------------------------------------------------------------------------- 1 | $FIELDS$ 2 | 3 | 4 |
    5 | {!! Form::submit(__('crud.save'), ['class' => 'btn btn-primary']) !!} 6 | @lang('crud.cancel') 7 |
    8 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/index.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | $MODEL_NAME_PLURAL_HUMAN$ 4 | @endsection 5 | @section('content') 6 |
    7 |
    8 |

    $MODEL_NAME_PLURAL_HUMAN$

    9 | 12 |
    13 |
    14 |
    15 |
    16 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table') 17 |
    18 |
    19 |
    20 | $PAGINATE$ 21 |
    22 | @endsection 23 | 24 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/index_locale.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | @lang('models/$MODEL_NAME_PLURAL_CAMEL$.plural') 4 | @endsection 5 | @section('content') 6 |
    7 |
    8 |

    @lang('models/$MODEL_NAME_PLURAL_CAMEL$.plural')

    9 | 12 |
    13 |
    14 |
    15 |
    16 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table') 17 |
    18 |
    19 |
    20 | $PAGINATE$ 21 |
    22 | @endsection 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/js_index.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | $MODEL_NAME_PLURAL_HUMAN$ 4 | @endsection 5 | @section('css') 6 | 7 | @endsection 8 | @section('content') 9 |
    10 |
    11 |

    $MODEL_NAME_PLURAL_HUMAN$

    12 | 15 |
    16 |
    17 |
    18 |
    19 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table') 20 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.templates.templates') 21 |
    22 |
    23 |
    24 |
    25 | @endsection 26 | @section('scripts') 27 | 30 | 31 | 32 | 33 | @endsection 34 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/js_index_locale.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | $MODEL_NAME_PLURAL_HUMAN$ 4 | @endsection 5 | @section('css') 6 | 7 | @endsection 8 | @section('content') 9 |
    10 |
    11 |

    $MODEL_NAME_PLURAL_HUMAN$

    12 | 15 |
    16 |
    17 |
    18 |
    19 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table') 20 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.templates.templates') 21 |
    22 |
    23 |
    24 |
    25 | @endsection 26 | @section('scripts') 27 | 30 | 31 | 32 | 33 | @endsection 34 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/js_modal_create.stub: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/js_modal_edit.stub: -------------------------------------------------------------------------------- 1 | 27 | 28 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/js_modal_index_locale.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | $MODEL_NAME_PLURAL_HUMAN$ 4 | @endsection 5 | @section('css') 6 | 7 | @endsection 8 | @section('content') 9 |
    10 |
    11 |

    $MODEL_NAME_PLURAL_HUMAN$

    12 | 16 |
    17 |
    18 |
    19 |
    20 |
    21 |
    22 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table') 23 |
    24 |
    25 |
    26 |
    27 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.templates.templates') 28 | 29 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.create-modal') 30 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.edit-modal') 31 |
    32 |
    33 | @endsection 34 | @section('page_js') 35 | 38 | 39 | 40 | 41 | @endsection 42 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/js_table.stub: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $FIELD_HEADERS$ 5 | 6 | 7 | 8 | 9 | 10 |
    Action
    11 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/js_table_locale.stub: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $FIELD_HEADERS$ 5 | 6 | 7 | 8 | 9 | 10 |
    {{ __('Action') }}
    11 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/paginate.stub: -------------------------------------------------------------------------------- 1 | 2 | @include('stisla-templates::common.paginate', ['records' => $$MODEL_NAME_PLURAL_CAMEL$]) 3 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/show.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | $MODEL_NAME_HUMAN$ Details 4 | @endsection 5 | @section('content') 6 |
    7 |
    8 |

    $MODEL_NAME_HUMAN$ Details

    9 |
    10 | Back 12 |
    13 |
    14 | @include('stisla-templates::common.errors') 15 |
    16 |
    17 |
    18 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.show_fields') 19 |
    20 |
    21 |
    22 |
    23 | @endsection 24 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/show_field.stub: -------------------------------------------------------------------------------- 1 | 2 |
    3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!} 4 |

    {{ $$MODEL_NAME_CAMEL$->$FIELD_NAME$ }}

    5 |
    -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/show_field_locale.stub: -------------------------------------------------------------------------------- 1 | 2 |
    3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!} 4 |

    {{ $$MODEL_NAME_CAMEL$->$FIELD_NAME$ }}

    5 |
    -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/show_locale.stub: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('title') 3 | @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular') @lang('crud.details') 4 | @endsection 5 | @section('content') 6 |
    7 |
    8 |

    @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular') @lang('crud.details')

    9 |
    10 | @lang('crud.back') 12 |
    13 |
    14 | @include('stisla-templates::common.errors') 15 |
    16 |
    17 |
    18 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.show_fields') 19 |
    20 |
    21 |
    22 |
    23 | @endsection 24 | 25 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/table.stub: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $FIELD_HEADERS$ 5 | 6 | 7 | 8 | 9 | @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$) 10 | 11 | $FIELD_BODY$ 12 | 21 | 22 | @endforeach 23 | 24 |
    Action
    13 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} 14 |
    15 | 16 | 17 | {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger action-btn delete-btn', 'onclick' => 'return confirm("'.__('crud.are_you_sure').'")']) !!} !!} 18 |
    19 | {!! Form::close() !!} 20 |
    25 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/table_cell.stub: -------------------------------------------------------------------------------- 1 | {{ $$MODEL_NAME_CAMEL$->$FIELD_NAME$ }} -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/table_header.stub: -------------------------------------------------------------------------------- 1 | $FIELD_NAME_TITLE$ -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/table_header_locale.stub: -------------------------------------------------------------------------------- 1 | $FIELD_NAME_TITLE$ -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/views/table_locale.stub: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $FIELD_HEADERS$ 5 | 6 | 7 | 8 | 9 | @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$) 10 | 11 | $FIELD_BODY$ 12 | 21 | 22 | @endforeach 23 | 24 |
    @lang('crud.action')
    13 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!} 14 |
    15 | 16 | 17 | {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger action-btn delete-btn', 'onclick' => 'return confirm("'.__('crud.are_you_sure').'")']) !!} !!} 18 |
    19 | {!! Form::close() !!} 20 |
    25 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/scaffold/webpack_mix_js.stub: -------------------------------------------------------------------------------- 1 | mix.js('resources/assets/js/$TABLE_NAME$/$TABLE_NAME$.js', 'public/assets/js/$TABLE_NAME$/$TABLE_NAME$.js').version(); 2 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/seeds/model_seeder.stub: -------------------------------------------------------------------------------- 1 | assertApiSuccess(); 9 | 10 | $response = json_decode($this->response->getContent(), true); 11 | $responseData = $response['data']; 12 | 13 | $this->assertNotEmpty($responseData['id']); 14 | $this->assertModelData($actualData, $responseData); 15 | } 16 | 17 | public function assertApiSuccess() 18 | { 19 | $this->response->assertStatus(200); 20 | $this->response->assertJson(['success' => true]); 21 | } 22 | 23 | public function assertModelData(Array $actualData, Array $expectedData) 24 | { 25 | foreach ($actualData as $key => $value) { 26 | if (in_array($key, $TIMESTAMPS$)) { 27 | continue; 28 | } 29 | $this->assertEquals($actualData[$key], $expectedData[$key]); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/test/repository_test.stub: -------------------------------------------------------------------------------- 1 | $MODEL_NAME_CAMEL$Repo = \App::make($MODEL_NAME$Repository::class); 22 | } 23 | 24 | /** 25 | * @test create 26 | */ 27 | public function test_create_$MODEL_NAME_SNAKE$() 28 | { 29 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->make()->toArray(); 30 | 31 | $created$MODEL_NAME$ = $this->$MODEL_NAME_CAMEL$Repo->create($$MODEL_NAME_CAMEL$); 32 | 33 | $created$MODEL_NAME$ = $created$MODEL_NAME$->toArray(); 34 | $this->assertArrayHasKey('id', $created$MODEL_NAME$); 35 | $this->assertNotNull($created$MODEL_NAME$['id'], 'Created $MODEL_NAME$ must have id specified'); 36 | $this->assertNotNull($MODEL_NAME$::find($created$MODEL_NAME$['id']), '$MODEL_NAME$ with given id must be in DB'); 37 | $this->assertModelData($$MODEL_NAME_CAMEL$, $created$MODEL_NAME$); 38 | } 39 | 40 | /** 41 | * @test read 42 | */ 43 | public function test_read_$MODEL_NAME_SNAKE$() 44 | { 45 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create(); 46 | 47 | $db$MODEL_NAME$ = $this->$MODEL_NAME_CAMEL$Repo->find($$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$); 48 | 49 | $db$MODEL_NAME$ = $db$MODEL_NAME$->toArray(); 50 | $this->assertModelData($$MODEL_NAME_CAMEL$->toArray(), $db$MODEL_NAME$); 51 | } 52 | 53 | /** 54 | * @test update 55 | */ 56 | public function test_update_$MODEL_NAME_SNAKE$() 57 | { 58 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create(); 59 | $fake$MODEL_NAME$ = $MODEL_NAME$::factory()->make()->toArray(); 60 | 61 | $updated$MODEL_NAME$ = $this->$MODEL_NAME_CAMEL$Repo->update($fake$MODEL_NAME$, $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$); 62 | 63 | $this->assertModelData($fake$MODEL_NAME$, $updated$MODEL_NAME$->toArray()); 64 | $db$MODEL_NAME$ = $this->$MODEL_NAME_CAMEL$Repo->find($$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$); 65 | $this->assertModelData($fake$MODEL_NAME$, $db$MODEL_NAME$->toArray()); 66 | } 67 | 68 | /** 69 | * @test delete 70 | */ 71 | public function test_delete_$MODEL_NAME_SNAKE$() 72 | { 73 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create(); 74 | 75 | $resp = $this->$MODEL_NAME_CAMEL$Repo->delete($$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$); 76 | 77 | $this->assertTrue($resp); 78 | $this->assertNull($MODEL_NAME$::find($$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$), '$MODEL_NAME$ should not exist in DB'); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/user/create_user_request.stub: -------------------------------------------------------------------------------- 1 | 'required', 29 | 'email' => 'required|email|unique:users,email', 30 | 'password' => 'required|confirmed' 31 | ]; 32 | 33 | return $rules; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/user/update_user_request.stub: -------------------------------------------------------------------------------- 1 | route('user'); 28 | $rules = [ 29 | 'name' => 'required', 30 | 'email' => 'required|email|unique:users,email,'.$id, 31 | 'password' => 'confirmed' 32 | ]; 33 | 34 | return $rules; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/user/user_repository.stub: -------------------------------------------------------------------------------- 1 | fieldSearchable; 32 | } 33 | 34 | /** 35 | * Configure the Model 36 | **/ 37 | public function model() 38 | { 39 | return User::class; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /resources/infyom/infyom-generator-templates/view_service_provider.stub: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'password' => 'The provided password is incorrect.', 18 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 19 | 20 | ]; 21 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Your password has been reset!', 17 | 'sent' => 'We have emailed your password reset link!', 18 | 'throttled' => 'Please wait before retrying.', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that email address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /resources/views/auth/emails/password.blade.php: -------------------------------------------------------------------------------- 1 | Click here to reset your password: {{ $link }} 2 | -------------------------------------------------------------------------------- /resources/views/auth/forgot-password.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth_app') 2 | @section('title') 3 | Forgot Password 4 | @endsection 5 | @section('content') 6 |
    7 |

    Reset Password

    8 | 9 |
    10 | @if (session('status')) 11 |
    12 | {{ session('status') }} 13 |
    14 | @endif 15 |
    16 | @csrf 17 |
    18 | 19 | 21 |
    22 | {{ $errors->first('email') }} 23 |
    24 |
    25 |
    26 | 29 |
    30 |
    31 |
    32 |
    33 |
    34 | Recalled your login info? Sign In 35 |
    36 | @endsection 37 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/confirm.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{ config('app.name') }} 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | 19 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth_app') 2 | @section('title') 3 | Forgot Password 4 | @endsection 5 | @section('content') 6 |
    7 |

    Reset Password

    8 | 9 |
    10 | @if (session('status')) 11 |
    12 | {{ session('status') }} 13 |
    14 | @endif 15 |
    16 | @csrf 17 |
    18 | 19 | 21 |
    22 | {{ $errors->first('email') }} 23 |
    24 |
    25 |
    26 | 29 |
    30 |
    31 |
    32 |
    33 |
    34 | Recalled your login info? Sign In 35 |
    36 | @endsection 37 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth_app') 2 | @section('title') 3 | Reset Password 4 | @endsection 5 | @section('content') 6 |
    7 |

    Set a New Password

    8 | 9 |
    10 |
    11 | @csrf 12 | @if ($errors->any()) 13 |
    14 |
      15 | @foreach ($errors->all() as $error) 16 |
    • {{ $error }}
    • 17 | @endforeach 18 |
    19 |
    20 | @endif 21 | 22 |
    23 | 24 | 26 |
    27 | {{ $errors->first('email') }} 28 |
    29 |
    30 |
    31 | 32 | 35 |
    36 | {{ $errors->first('password') }} 37 |
    38 |
    39 |
    40 | 41 | 44 |
    45 | {{ $errors->first('password_confirmation') }} 46 |
    47 |
    48 |
    49 | 52 |
    53 |
    54 |
    55 |
    56 |
    57 | Recalled your login info? Sign In 58 |
    59 | @endsection 60 | -------------------------------------------------------------------------------- /resources/views/auth/reset-password.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth_app') 2 | @section('title') 3 | Reset Password 4 | @endsection 5 | @section('content') 6 |
    7 |

    Set a New Password

    8 | 9 |
    10 |
    11 | @csrf 12 | @if ($errors->any()) 13 |
    14 |
      15 | @foreach ($errors->all() as $error) 16 |
    • {{ $error }}
    • 17 | @endforeach 18 |
    19 |
    20 | @endif 21 | 22 |
    23 | 24 | 26 |
    27 | {{ $errors->first('email') }} 28 |
    29 |
    30 |
    31 | 32 | 35 |
    36 | {{ $errors->first('password') }} 37 |
    38 |
    39 |
    40 | 41 | 44 |
    45 | {{ $errors->first('password_confirmation') }} 46 |
    47 |
    48 |
    49 | 52 |
    53 |
    54 |
    55 |
    56 |
    57 | Recalled your login info? Sign In 58 |
    59 | @endsection 60 | -------------------------------------------------------------------------------- /resources/views/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |

    Verify Your Email Address

    9 | 10 |
    11 | @if (session('resent')) 12 | 15 | @endif 16 |

    Before proceeding, please check your email for a verification link.If you did not receive 17 | the email,

    18 | click here to request another'. 19 |
    20 |
    21 |
    22 |
    23 |
    24 | @endsection -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |

    Dashboard

    7 |
    8 |
    9 |
    10 |
    11 |
    12 |
    13 |

    Dashboard Content

    14 |
    15 |
    16 |
    17 |
    18 |
    19 |
    20 | @endsection 21 | 22 | -------------------------------------------------------------------------------- /resources/views/layouts/auth_app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | @yield('title') | {{ config('app.name') }} 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
    22 |
    23 |
    24 |
    25 |
    26 | 30 | @yield('content') 31 | 34 |
    35 |
    36 |
    37 |
    38 |
    39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /resources/views/layouts/datatables_css.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/resources/views/layouts/datatables_css.blade.php -------------------------------------------------------------------------------- /resources/views/layouts/datatables_js.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/resources/views/layouts/datatables_js.blade.php -------------------------------------------------------------------------------- /resources/views/layouts/footer.blade.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /resources/views/layouts/header.blade.php: -------------------------------------------------------------------------------- 1 |
    2 | 5 |
    6 | 54 | -------------------------------------------------------------------------------- /resources/views/layouts/menu.blade.php: -------------------------------------------------------------------------------- 1 |
  • 2 | 3 | Dashboard 4 | 5 |
  • 6 | -------------------------------------------------------------------------------- /resources/views/layouts/sidebar.blade.php: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 18 | return $request->user(); 19 | }); 20 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->purpose('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('home'); 21 | 22 | Auth::routes(); 23 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | compiled.php 2 | config.php 3 | down 4 | events.scanned.php 5 | maintenance.php 6 | routes.php 7 | routes.scanned.php 8 | schedule-* 9 | services.json 10 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/ApiTestTrait.php: -------------------------------------------------------------------------------- 1 | assertApiSuccess(); 9 | 10 | $response = json_decode($this->response->getContent(), true); 11 | $responseData = $response['data']; 12 | 13 | $this->assertNotEmpty($responseData['id']); 14 | $this->assertModelData($actualData, $responseData); 15 | } 16 | 17 | public function assertApiSuccess() 18 | { 19 | $this->response->assertStatus(200); 20 | $this->response->assertJson(['success' => true]); 21 | } 22 | 23 | public function assertModelData(Array $actualData, Array $expectedData) 24 | { 25 | foreach ($actualData as $key => $value) { 26 | if (in_array($key, ['created_at', 'updated_at'])) { 27 | continue; 28 | } 29 | $this->assertEquals($actualData[$key], $expectedData[$key]); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel applications. By default, we are compiling the CSS 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/js/app.js', 'public/js'); 15 | mix.styles(['resources/js/app.js'], 'public/css/app.css').version(); 16 | 17 | mix.styles([ 18 | 'public/css/social-icons.css', 19 | 'public/css/owl.carousel.css', 20 | 'public/css/owl.theme.css', 21 | 'public/css/prism.css', 22 | 'public/css/main.css', 23 | 'public/css/custom.css', 24 | ], 'public/css/all.css').version(); 25 | 26 | mix.js( 27 | 'public/js/scripts.js', 'public/js/scripts.min.js') 28 | .js('resources/assets/js/profile.js', 'public/assets/js/profile.js') 29 | .js('resources/assets/js/custom/custom.js', 'public/assets/js/custom/custom.js') 30 | .js('resources/assets/js/custom/custom-datatable.js', 'public/assets/js/custom/custom-datatable.js') 31 | .version(); 32 | 33 | 34 | mix.copy('node_modules/bootstrap/dist/css/bootstrap.min.css', 35 | 'public/assets/css/bootstrap.min.css'); 36 | 37 | mix.copy('node_modules/datatables.net-dt/css/jquery.dataTables.min.css', 38 | 'public/assets/css/jquery.dataTables.min.css'); 39 | mix.copy('node_modules/datatables.net-dt/images', 'public/assets/images'); 40 | mix.copy('node_modules/select2/dist/css/select2.min.css', 41 | 'public/assets/css/select2.min.css'); 42 | mix.copy('node_modules/sweetalert/dist/sweetalert.css', 43 | 'public/assets/css/sweetalert.css'); 44 | mix.copy('node_modules/izitoast/dist/css/iziToast.min.css', 45 | 'public/assets/css/iziToast.min.css'); 46 | 47 | mix.copyDirectory('node_modules/@fortawesome/fontawesome-free/css', 48 | 'public/assets/css/@fortawesome/fontawesome-free/css'); 49 | mix.copyDirectory('node_modules/@fortawesome/fontawesome-free/webfonts', 50 | 'public/assets/css/@fortawesome/fontawesome-free/webfonts'); 51 | 52 | mix.babel('node_modules/jquery.nicescroll/dist/jquery.nicescroll.js', 53 | 'public/assets/js/jquery.nicescroll.js'); 54 | mix.babel('node_modules/jquery/dist/jquery.min.js', 55 | 'public/assets/js/jquery.min.js'); 56 | mix.babel('node_modules/popper.js/dist/umd/popper.min.js', 57 | 'public/assets/js/popper.min.js'); 58 | mix.babel('node_modules/bootstrap/dist/js/bootstrap.min.js', 59 | 'public/assets/js/bootstrap.min.js'); 60 | mix.babel('node_modules/datatables.net/js/jquery.dataTables.min.js', 61 | 'public/assets/js/jquery.dataTables.min.js'); 62 | mix.babel('node_modules/select2/dist/js/select2.min.js', 63 | 'public/assets/js/select2.min.js'); 64 | mix.babel('node_modules/sweetalert/dist/sweetalert.min.js', 65 | 'public/assets/js/sweetalert.min.js'); 66 | mix.babel('node_modules/izitoast/dist/js/iziToast.min.js', 67 | 'public/assets/js/iziToast.min.js'); 68 | --------------------------------------------------------------------------------