├── .env.example ├── .gitignore ├── LICENSE ├── README.md ├── _config.yml ├── app ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── APIController.php │ │ ├── Auth │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── RegisterController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── VerificationController.php │ │ ├── Controller.php │ │ └── HomeController.php │ ├── Kernel.php │ └── Middleware │ │ ├── Authenticate.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── EncryptCookies.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php ├── Post.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php └── User.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 ├── 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 │ └── 2020_04_09_122852_create_posts_table.php └── seeds │ └── DatabaseSeeder.php ├── package-lock.json ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── assets │ └── front │ │ ├── css │ │ ├── .DS_Store │ │ ├── ajax-loader.gif │ │ ├── animate.css │ │ ├── aos.css │ │ ├── bootstrap-datepicker.css │ │ ├── bootstrap.min.css │ │ ├── bootstrap │ │ │ ├── .DS_Store │ │ │ ├── bootstrap-grid.css │ │ │ └── bootstrap-reboot.css │ │ ├── css │ │ │ ├── .DS_Store │ │ │ ├── bootstrap-reboot.css │ │ │ └── mixins │ │ │ │ └── _text-hide.css │ │ ├── flaticon.css │ │ ├── icomoon.css │ │ ├── ionicons.min.css │ │ ├── jquery.timepicker.css │ │ ├── magnific-popup.css │ │ ├── open-iconic-bootstrap.min.css │ │ ├── owl.carousel.min.css │ │ ├── owl.theme.default.min.css │ │ └── style.css │ │ ├── fonts │ │ ├── .DS_Store │ │ ├── flaticon │ │ │ ├── .DS_Store │ │ │ ├── backup.txt │ │ │ ├── font │ │ │ │ ├── Flaticon.eot │ │ │ │ ├── Flaticon.svg │ │ │ │ ├── Flaticon.ttf │ │ │ │ ├── Flaticon.woff │ │ │ │ ├── _flaticon.scss │ │ │ │ ├── flaticon.css │ │ │ │ └── flaticon.html │ │ │ └── license │ │ │ │ └── license.pdf │ │ ├── icomoon │ │ │ ├── icomoon.eot │ │ │ ├── icomoon.svg │ │ │ ├── icomoon.ttf │ │ │ └── icomoon.woff │ │ ├── ionicons │ │ │ ├── css │ │ │ │ ├── _ionicons.scss │ │ │ │ └── ionicons.min.css │ │ │ └── fonts │ │ │ │ ├── .DS_Store │ │ │ │ ├── ionicons.eot │ │ │ │ ├── ionicons.svg │ │ │ │ ├── ionicons.ttf │ │ │ │ ├── ionicons.woff │ │ │ │ └── ionicons.woff2 │ │ └── open-iconic │ │ │ ├── open-iconic.eot │ │ │ ├── open-iconic.otf │ │ │ ├── open-iconic.svg │ │ │ ├── open-iconic.ttf │ │ │ └── open-iconic.woff │ │ ├── images │ │ ├── .DS_Store │ │ ├── about.jpg │ │ ├── author.jpg │ │ ├── bg_1.jpg │ │ ├── image_1.jpg │ │ ├── image_10.jpg │ │ ├── image_11.jpg │ │ ├── image_12.jpg │ │ ├── image_2.jpg │ │ ├── image_3.jpg │ │ ├── image_4.jpg │ │ ├── image_5.jpg │ │ ├── image_6.jpg │ │ ├── image_7.jpg │ │ ├── image_8.jpg │ │ ├── image_9.jpg │ │ ├── loc.png │ │ ├── person_1.jpg │ │ ├── person_2.jpg │ │ ├── person_3.jpg │ │ └── person_4.jpg │ │ ├── js │ │ ├── .DS_Store │ │ ├── aos.js │ │ ├── bootstrap.min.js │ │ ├── google-map.js │ │ ├── jquery-3.2.1.min.js │ │ ├── jquery-migrate-3.0.1.min.js │ │ ├── jquery.animateNumber.min.js │ │ ├── jquery.easing.1.3.js │ │ ├── jquery.magnific-popup.min.js │ │ ├── jquery.min.js │ │ ├── jquery.stellar.min.js │ │ ├── jquery.waypoints.min.js │ │ ├── main.js │ │ ├── owl.carousel.min.js │ │ ├── popper.min.js │ │ ├── range.js │ │ └── scrollax.min.js │ │ └── scss │ │ ├── .DS_Store │ │ ├── bootstrap │ │ ├── .DS_Store │ │ ├── _alert.scss │ │ ├── _badge.scss │ │ ├── _breadcrumb.scss │ │ ├── _button-group.scss │ │ ├── _buttons.scss │ │ ├── _card.scss │ │ ├── _carousel.scss │ │ ├── _close.scss │ │ ├── _code.scss │ │ ├── _custom-forms.scss │ │ ├── _dropdown.scss │ │ ├── _forms.scss │ │ ├── _functions.scss │ │ ├── _grid.scss │ │ ├── _images.scss │ │ ├── _input-group.scss │ │ ├── _jumbotron.scss │ │ ├── _list-group.scss │ │ ├── _media.scss │ │ ├── _mixins.scss │ │ ├── _modal.scss │ │ ├── _nav.scss │ │ ├── _navbar.scss │ │ ├── _pagination.scss │ │ ├── _popover.scss │ │ ├── _print.scss │ │ ├── _progress.scss │ │ ├── _reboot.scss │ │ ├── _root.scss │ │ ├── _spinners.scss │ │ ├── _tables.scss │ │ ├── _toasts.scss │ │ ├── _tooltip.scss │ │ ├── _transitions.scss │ │ ├── _type.scss │ │ ├── _utilities.scss │ │ ├── _variables.scss │ │ ├── bootstrap-grid.scss │ │ ├── bootstrap-reboot.scss │ │ ├── bootstrap.scss │ │ ├── mixins │ │ │ ├── _alert.scss │ │ │ ├── _background-variant.scss │ │ │ ├── _badge.scss │ │ │ ├── _border-radius.scss │ │ │ ├── _box-shadow.scss │ │ │ ├── _breakpoints.scss │ │ │ ├── _buttons.scss │ │ │ ├── _caret.scss │ │ │ ├── _clearfix.scss │ │ │ ├── _deprecate.scss │ │ │ ├── _float.scss │ │ │ ├── _forms.scss │ │ │ ├── _gradients.scss │ │ │ ├── _grid-framework.scss │ │ │ ├── _grid.scss │ │ │ ├── _hover.scss │ │ │ ├── _image.scss │ │ │ ├── _list-group.scss │ │ │ ├── _lists.scss │ │ │ ├── _nav-divider.scss │ │ │ ├── _pagination.scss │ │ │ ├── _reset-text.scss │ │ │ ├── _resize.scss │ │ │ ├── _screen-reader.scss │ │ │ ├── _size.scss │ │ │ ├── _table-row.scss │ │ │ ├── _text-emphasis.scss │ │ │ ├── _text-hide.scss │ │ │ ├── _text-truncate.scss │ │ │ ├── _transition.scss │ │ │ └── _visibility.scss │ │ ├── utilities │ │ │ ├── _align.scss │ │ │ ├── _background.scss │ │ │ ├── _borders.scss │ │ │ ├── _clearfix.scss │ │ │ ├── _display.scss │ │ │ ├── _embed.scss │ │ │ ├── _flex.scss │ │ │ ├── _float.scss │ │ │ ├── _overflow.scss │ │ │ ├── _position.scss │ │ │ ├── _screenreaders.scss │ │ │ ├── _shadows.scss │ │ │ ├── _sizing.scss │ │ │ ├── _spacing.scss │ │ │ ├── _stretched-link.scss │ │ │ ├── _text.scss │ │ │ └── _visibility.scss │ │ └── vendor │ │ │ └── _rfs.scss │ │ └── style.scss ├── css │ └── app.css ├── favicon.ico ├── fonts │ └── vendor │ │ └── react-notifications │ │ └── lib │ │ ├── notification.eot │ │ ├── notification.svg │ │ ├── notification.ttf │ │ └── notification.woff ├── image1.png ├── image2.png ├── image3.png ├── images │ ├── bg_1.jpg │ └── image_1.jpg ├── index.php ├── js │ └── app.js ├── mix-manifest.json ├── robots.txt └── web.config ├── resources ├── js │ ├── Components │ │ ├── Blog │ │ │ ├── BlogCreate.js │ │ │ ├── BlogIndex.js │ │ │ └── BlogList │ │ │ │ ├── BlogDetail.js │ │ │ │ └── BlogList.js │ │ └── Header.js │ ├── app.js │ ├── bootstrap.js │ └── index.js ├── lang │ └── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php ├── sass │ ├── _variables.scss │ └── app.scss └── views │ ├── auth │ ├── login.blade.php │ ├── passwords │ │ ├── confirm.blade.php │ │ ├── email.blade.php │ │ └── reset.blade.php │ ├── register.blade.php │ └── verify.blade.php │ ├── home.blade.php │ ├── layouts │ └── app.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 ├── CreatesApplication.php ├── Feature │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── webpack.mix.js /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME="Laravel with react JS" 2 | APP_ENV=local 3 | APP_KEY=base64:ihNynojZU2FZGG6lzrHSdvjkJ6Tdx5ZASUO84oyZA7A= 4 | APP_DEBUG=true 5 | APP_URL="http://127.0.0.1:8000" 6 | 7 | LOG_CHANNEL=stack 8 | 9 | DB_CONNECTION=mysql 10 | DB_HOST="127.0.0.1" 11 | DB_PORT=3306 12 | DB_DATABASE="laravel_reactjs" 13 | DB_USERNAME=root 14 | DB_PASSWORD= 15 | 16 | BROADCAST_DRIVER=log 17 | CACHE_DRIVER=file 18 | QUEUE_CONNECTION=sync 19 | 20 | SESSION_DRIVER=file 21 | SESSION_LIFETIME=120 22 | 23 | REDIS_HOST=127.0.0.1 24 | REDIS_PASSWORD=null 25 | REDIS_PORT=6379 26 | 27 | MAIL_DRIVER="smtp" 28 | MAIL_HOST="smtp.mailtrap.io" 29 | MAIL_PORT=2525 30 | MAIL_USERNAME="username" 31 | MAIL_PASSWORD="password" 32 | MAIL_FROM_ADDRESS="test@address.com" 33 | MAIL_FROM_NAME="test" 34 | 35 | AWS_ACCESS_KEY_ID= 36 | AWS_SECRET_ACCESS_KEY= 37 | AWS_DEFAULT_REGION=us-east-1 38 | AWS_BUCKET= 39 | 40 | PUSHER_APP_ID= 41 | PUSHER_APP_KEY= 42 | PUSHER_APP_SECRET= 43 | PUSHER_APP_CLUSTER=mt1 44 | 45 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 46 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/storage 3 | /storage/*.key 4 | /vendor 5 | .env 6 | .idea/ 7 | .phpunit.result.cache 8 | Homestead.json 9 | Homestead.yaml 10 | npm-debug.log 11 | yarn-error.log 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Maharshi ABI 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 | ## Laravel 7.5.2 and React 16.2.0 4 | 5 | Please follow the guide. 6 | 7 | ## Prerequisite 8 | 9 | 1. Make sure you have [composer](https://getcomposer.org/download/) installed. 10 | 2. Make sure you have latest stable version of [node](https://nodejs.org/en/download/) installed. 11 | 12 | ### Setup and Installation 13 | 14 | 1. `git clone` 15 | 2. `create a .env file copy content from .env.example and update the values` 16 | 3. `composer install && composer update` 17 | 4. `php artisan migrate:refresh` 18 | 5. `npm install && npm run dev` 19 | 6. `php artisan key:generate` 20 | 7. `php artisan serve` 21 | 8. `npm run watch` 22 | 23 | open browser and check the following address 24 | 25 | `http://127.0.0.1:8000` 26 | 27 | TODO: 28 | 29 | - [x] User Login 30 | - [x] User Register 31 | - [x] Blog List 32 | - [x] Blog Create 33 | - [x] Blog Remove 34 | - [ ] Reset Password 35 | - [ ] Tests 36 | - [x] Upgrade to Laravel 7 37 | - [x] Upgrade to React 16.13 38 | - [x] Axios 39 | - [x] Inline-CSS 40 | - [x] Router and Dynamic Routing 41 | 42 | 43 | ## App Screenshots 44 | 45 | Laravel React CRUD 46 | Laravel React CRUD 47 | Laravel React CRUD -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /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 | get(); 13 | 14 | return response()->json([ 15 | 'value' => $getAllPost, 16 | 'status' => 'success', 17 | 'message' => 'Post Listed Successfully !!' 18 | ]); 19 | 20 | }catch (\Exception $e){ 21 | return [ 22 | 'value' => [], 23 | 'status' => 'error', 24 | 'message' => $e->getMessage() 25 | 26 | ]; 27 | } 28 | } 29 | 30 | public function createPost(Request $request) 31 | { 32 | try{ 33 | $data = [ 34 | 'image' => $request->image, 35 | 'title' => $request->title, 36 | 'description' => $request->description, 37 | ]; 38 | 39 | $postData = Post::create($data); 40 | 41 | return response()->json([ 42 | 'value' => $postData, 43 | 'status' => 'success', 44 | 'message' => 'Post Added Successfully !!' 45 | ]); 46 | }catch (\Exception $e){ 47 | return [ 48 | 'value' => [], 49 | 'status' => 'error', 50 | 'message' => $e->getMessage() 51 | 52 | ]; 53 | } 54 | } 55 | 56 | public function removePost(Request $request) 57 | { 58 | try{ 59 | $removePost = $request->id; 60 | $getAllPost = Post::find($removePost); 61 | if($getAllPost){ 62 | $getAllPost->delete(); 63 | } 64 | return response()->json([ 65 | 'value' => [], 66 | 'status' => 'success', 67 | 'message' => 'Post Removed Successfully !!' 68 | ]); 69 | 70 | }catch (\Exception $e){ 71 | return [ 72 | 'value' => [], 73 | 'status' => 'error', 74 | 'message' => $e->getMessage() 75 | 76 | ]; 77 | } 78 | } 79 | 80 | public function postDetail(Request $request) 81 | { 82 | try{ 83 | $postID = $request->id; 84 | $getPostData = Post::find($postID); 85 | return response()->json([ 86 | 'value' => $getPostData, 87 | 'status' => 'success', 88 | 'message' => 'Post Removed Successfully !!' 89 | ]); 90 | 91 | }catch (\Exception $e){ 92 | return [ 93 | 'value' => [], 94 | 'status' => 'error', 95 | 'message' => $e->getMessage() 96 | 97 | ]; 98 | } 99 | } 100 | 101 | } 102 | -------------------------------------------------------------------------------- /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\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 | [ 32 | \App\Http\Middleware\EncryptCookies::class, 33 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 34 | \Illuminate\Session\Middleware\StartSession::class, 35 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 36 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 37 | \App\Http\Middleware\VerifyCsrfToken::class, 38 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 39 | ], 40 | 41 | 'api' => [ 42 | 'throttle:60,1', 43 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 44 | ], 45 | ]; 46 | 47 | /** 48 | * The application's route middleware. 49 | * 50 | * These middleware may be assigned to groups or used individually. 51 | * 52 | * @var array 53 | */ 54 | protected $routeMiddleware = [ 55 | 'auth' => \App\Http\Middleware\Authenticate::class, 56 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 57 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::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/CheckForMaintenanceMode.php: -------------------------------------------------------------------------------- 1 | check()) { 22 | return redirect(RouteServiceProvider::HOME); 23 | } 24 | 25 | return $next($request); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | format('d M Y h:i A'); 19 | } 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /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 | parent::boot(); 31 | 32 | // 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 46 | 47 | $this->mapWebRoutes(); 48 | 49 | // 50 | } 51 | 52 | /** 53 | * Define the "web" routes for the application. 54 | * 55 | * These routes all receive session state, CSRF protection, etc. 56 | * 57 | * @return void 58 | */ 59 | protected function mapWebRoutes() 60 | { 61 | Route::middleware('web') 62 | ->namespace($this->namespace) 63 | ->group(base_path('routes/web.php')); 64 | } 65 | 66 | /** 67 | * Define the "api" routes for the application. 68 | * 69 | * These routes are typically stateless. 70 | * 71 | * @return void 72 | */ 73 | protected function mapApiRoutes() 74 | { 75 | Route::prefix('api') 76 | ->middleware('api') 77 | ->namespace($this->namespace) 78 | ->group(base_path('routes/api.php')); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | 'datetime', 38 | ]; 39 | } 40 | -------------------------------------------------------------------------------- /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.2.5||8.0.6", 12 | "fideloper/proxy": "^4.2", 13 | "fruitcake/laravel-cors": "^1.0", 14 | "guzzlehttp/guzzle": "^6.3", 15 | "laravel/framework": "^7.0", 16 | "laravel/tinker": "^2.0", 17 | "laravel/ui": "^2.0", 18 | "nesbot/carbon": "^2.32" 19 | }, 20 | "require-dev": { 21 | "facade/ignition": "^2.0", 22 | "fzaninotto/faker": "^1.9.1", 23 | "mockery/mockery": "^1.3.1", 24 | "nunomaduro/collision": "^4.1", 25 | "phpunit/phpunit": "^8.5" 26 | }, 27 | "config": { 28 | "optimize-autoloader": true, 29 | "preferred-install": "dist", 30 | "sort-packages": true 31 | }, 32 | "extra": { 33 | "laravel": { 34 | "dont-discover": [] 35 | } 36 | }, 37 | "autoload": { 38 | "psr-4": { 39 | "App\\": "app/" 40 | }, 41 | "classmap": [ 42 | "database/seeds", 43 | "database/factories" 44 | ] 45 | }, 46 | "autoload-dev": { 47 | "psr-4": { 48 | "Tests\\": "tests/" 49 | } 50 | }, 51 | "minimum-stability": "dev", 52 | "prefer-stable": true, 53 | "scripts": { 54 | "post-autoload-dump": [ 55 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 56 | "@php artisan package:discover --ansi" 57 | ], 58 | "post-root-package-install": [ 59 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 60 | ], 61 | "post-create-project-cmd": [ 62 | "@php artisan key:generate --ansi" 63 | ] 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /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 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*'], 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 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "sftp", "s3" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_ACCESS_KEY_ID'), 61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 62 | 'region' => env('AWS_DEFAULT_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | 'endpoint' => env('AWS_URL'), 65 | ], 66 | 67 | ], 68 | 69 | /* 70 | |-------------------------------------------------------------------------- 71 | | Symbolic Links 72 | |-------------------------------------------------------------------------- 73 | | 74 | | Here you may configure the symbolic links that will be created when the 75 | | `storage:link` Artisan command is executed. The array keys should be 76 | | the locations of the links and the values should be their targets. 77 | | 78 | */ 79 | 80 | 'links' => [ 81 | public_path('storage') => storage_path('app/public'), 82 | ], 83 | 84 | ]; 85 | -------------------------------------------------------------------------------- /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'), 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 | define(User::class, function (Faker $faker) { 21 | return [ 22 | 'name' => $faker->name, 23 | 'email' => $faker->unique()->safeEmail, 24 | 'email_verified_at' => now(), 25 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 26 | 'remember_token' => Str::random(10), 27 | ]; 28 | }); 29 | -------------------------------------------------------------------------------- /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->text('connection'); 19 | $table->text('queue'); 20 | $table->longText('payload'); 21 | $table->longText('exception'); 22 | $table->timestamp('failed_at')->useCurrent(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('failed_jobs'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2020_04_09_122852_create_posts_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->text('image')->default('default.png'); 19 | $table->string('title'); 20 | $table->text('description'); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('posts'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /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 --hide-modules --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 --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 --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "@babel/preset-react": "^7.0.0", 14 | "axios": "^0.19.2", 15 | "bootstrap": "^4.0.0", 16 | "cross-env": "^7.0.2", 17 | "jquery": "^3.2", 18 | "laravel-mix": "^5.0.1", 19 | "lodash": "^4.17.13", 20 | "popper.js": "^1.12", 21 | "react": "^16.2.0", 22 | "react-dom": "^16.2.0", 23 | "resolve-url-loader": "^3.1.0", 24 | "sass": "^1.15.2", 25 | "sass-loader": "^8.0.0" 26 | }, 27 | "dependencies": { 28 | "react-notifications": "^1.6.0", 29 | "react-notifications-component": "^2.4.0", 30 | "react-router-dom": "^5.1.2", 31 | "react-toastify": "^5.5.0", 32 | "react-router": "latest" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | ./tests/Unit 9 | 10 | 11 | ./tests/Feature 12 | 13 | 14 | 15 | 16 | ./app 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /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/assets/front/css/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/css/.DS_Store -------------------------------------------------------------------------------- /public/assets/front/css/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/css/ajax-loader.gif -------------------------------------------------------------------------------- /public/assets/front/css/bootstrap/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/css/bootstrap/.DS_Store -------------------------------------------------------------------------------- /public/assets/front/css/css/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/css/css/.DS_Store -------------------------------------------------------------------------------- /public/assets/front/css/css/mixins/_text-hide.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/css/css/mixins/_text-hide.css -------------------------------------------------------------------------------- /public/assets/front/css/flaticon.css: -------------------------------------------------------------------------------- 1 | /* 2 | Flaticon icon font: Flaticon 3 | Creation date: 12/12/2018 14:43 4 | */ 5 | 6 | 7 | @font-face { 8 | font-family: "Flaticon"; 9 | src: url("../fonts/flaticon/font/Flaticon.eot"); 10 | src: url("../fonts/flaticon/font/Flaticon.eot?#iefix") format("embedded-opentype"), 11 | url("../fonts/flaticon/font/Flaticon.woff") format("woff"), 12 | url("../fonts/flaticon/font/Flaticon.ttf") format("truetype"), 13 | url("../fonts/flaticon/font/Flaticon.svg#Flaticon") format("svg"); 14 | font-weight: normal; 15 | font-style: normal; 16 | } 17 | 18 | @media screen and (-webkit-min-device-pixel-ratio:0) { 19 | @font-face { 20 | font-family: "Flaticon"; 21 | src: url("../fonts/flaticon/font/Flaticon.svg#Flaticon") format("svg"); 22 | } 23 | } 24 | 25 | [class^="flaticon-"]:before, [class*=" flaticon-"]:before, 26 | [class^="flaticon-"]:after, [class*=" flaticon-"]:after { 27 | font-family: Flaticon; 28 | font-style: normal; 29 | font-weight: normal; 30 | font-variant: normal; 31 | text-transform: none; 32 | line-height: 1; 33 | 34 | /* Better Font Rendering =========== */ 35 | -webkit-font-smoothing: antialiased; 36 | -moz-osx-font-smoothing: grayscale; 37 | } 38 | 39 | .flaticon-printing-photo:before { content: "\f100"; } 40 | .flaticon-focusing-target:before { content: "\f101"; } 41 | .flaticon-camera:before { content: "\f102"; } 42 | .flaticon-polaroid-pictures:before { content: "\f103"; } 43 | .flaticon-big-lens:before { content: "\f104"; } 44 | .flaticon-film:before { content: "\f105"; } -------------------------------------------------------------------------------- /public/assets/front/css/jquery.timepicker.css: -------------------------------------------------------------------------------- 1 | .ui-timepicker-wrapper { 2 | overflow-y: auto; 3 | max-height: 150px; 4 | width: 6.5em; 5 | background: #fff; 6 | border: 1px solid #ddd; 7 | -webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2); 8 | -moz-box-shadow:0 5px 10px rgba(0,0,0,0.2); 9 | box-shadow:0 5px 10px rgba(0,0,0,0.2); 10 | outline: none; 11 | z-index: 10001; 12 | margin: 0; 13 | } 14 | 15 | .ui-timepicker-wrapper.ui-timepicker-with-duration { 16 | width: 13em; 17 | } 18 | 19 | .ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-30, 20 | .ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-60 { 21 | width: 11em; 22 | } 23 | 24 | .ui-timepicker-list { 25 | margin: 0; 26 | padding: 0; 27 | list-style: none; 28 | } 29 | 30 | .ui-timepicker-duration { 31 | margin-left: 5px; color: #888; 32 | } 33 | 34 | .ui-timepicker-list:hover .ui-timepicker-duration { 35 | color: #888; 36 | } 37 | 38 | .ui-timepicker-list li { 39 | padding: 3px 0 3px 5px; 40 | cursor: pointer; 41 | white-space: nowrap; 42 | color: #000; 43 | list-style: none; 44 | margin: 0; 45 | } 46 | 47 | .ui-timepicker-list:hover .ui-timepicker-selected { 48 | background: #fff; color: #000; 49 | } 50 | 51 | li.ui-timepicker-selected, 52 | .ui-timepicker-list li:hover, 53 | .ui-timepicker-list .ui-timepicker-selected:hover { 54 | background: #1980EC; color: #fff; 55 | } 56 | 57 | li.ui-timepicker-selected .ui-timepicker-duration, 58 | .ui-timepicker-list li:hover .ui-timepicker-duration { 59 | color: #ccc; 60 | } 61 | 62 | .ui-timepicker-list li.ui-timepicker-disabled, 63 | .ui-timepicker-list li.ui-timepicker-disabled:hover, 64 | .ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled { 65 | color: #888; 66 | cursor: default; 67 | } 68 | 69 | .ui-timepicker-list li.ui-timepicker-disabled:hover, 70 | .ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled { 71 | background: #f2f2f2; 72 | } 73 | -------------------------------------------------------------------------------- /public/assets/front/css/owl.theme.default.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Owl Carousel v2.2.1 3 | * Copyright 2013-2017 David Deutsch 4 | * Licensed under () 5 | */ 6 | .owl-theme .owl-dots, 7 | .owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent} 8 | .owl-theme .owl-nav{margin-top:10px} 9 | .owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px;position: absolute;} 10 | .owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none} 11 | .owl-theme .owl-nav .disabled{opacity:.5;cursor:default} 12 | .owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px} 13 | .owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1} 14 | .owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px} 15 | .owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791} -------------------------------------------------------------------------------- /public/assets/front/fonts/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/.DS_Store -------------------------------------------------------------------------------- /public/assets/front/fonts/flaticon/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/flaticon/.DS_Store -------------------------------------------------------------------------------- /public/assets/front/fonts/flaticon/backup.txt: -------------------------------------------------------------------------------- 1 | eyIxIjp7IklEIjoxLCJuYW1lIjoiTXkgaWNvbnMgY29sbGVjdGlvbiIsImJvb2ttYXJrX2lkIjoiZHpvejQ5Z2pvNjAwMDAwMCIsImNyZWF0ZWQiOm51bGwsInVwZGF0ZWQiOjE1NDQ2MjIyMjQsImFjdGl2ZSI6MSwic291cmNlIjoibG9jYWwiLCJvcmRlciI6MCwiY29sb3IiOiIwMDAwMDAiLCJzdGF0dXMiOjF9LCJkem96NDlnam82MDAwMDAwIjpbeyJpZCI6ODU1MDYsInRlYW0iOjAsIm5hbWUiOiJmb2N1c2luZy10YXJnZXQiLCJjb2xvciI6IiMwMDAwMDAiLCJwcmVtaXVtIjowLCJzb3J0IjoyfSx7ImlkIjo3NDk5NzEsInRlYW0iOjAsIm5hbWUiOiJjYW1lcmEiLCJjb2xvciI6IiMwMDAwMDAiLCJwcmVtaXVtIjowLCJzb3J0IjozfSx7ImlkIjo4NTQyOCwidGVhbSI6MCwibmFtZSI6InBvbGFyb2lkLXBpY3R1cmVzIiwiY29sb3IiOiIjMDAwMDAwIiwicHJlbWl1bSI6MCwic29ydCI6NH0seyJpZCI6ODU0NDcsInRlYW0iOjAsIm5hbWUiOiJiaWctbGVucyIsImNvbG9yIjoiIzAwMDAwMCIsInByZW1pdW0iOjAsInNvcnQiOjV9LHsiaWQiOjExMjIxMCwidGVhbSI6MCwibmFtZSI6ImZpbG0iLCJjb2xvciI6IiMwMDAwMDAiLCJwcmVtaXVtIjowLCJzb3J0Ijo2fSx7ImlkIjoxMDU3MTYsInRlYW0iOjAsIm5hbWUiOiJwcmludGluZy1waG90byIsImNvbG9yIjoiIzAwMDAwMCIsInByZW1pdW0iOjAsInNvcnQiOjF9XX0= -------------------------------------------------------------------------------- /public/assets/front/fonts/flaticon/font/Flaticon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/flaticon/font/Flaticon.eot -------------------------------------------------------------------------------- /public/assets/front/fonts/flaticon/font/Flaticon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/flaticon/font/Flaticon.ttf -------------------------------------------------------------------------------- /public/assets/front/fonts/flaticon/font/Flaticon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/flaticon/font/Flaticon.woff -------------------------------------------------------------------------------- /public/assets/front/fonts/flaticon/font/_flaticon.scss: -------------------------------------------------------------------------------- 1 | /* 2 | Flaticon icon font: Flaticon 3 | Creation date: 12/12/2018 14:43 4 | */ 5 | 6 | @font-face { 7 | font-family: "Flaticon"; 8 | src: url("./Flaticon.eot"); 9 | src: url("./Flaticon.eot?#iefix") format("embedded-opentype"), 10 | url("./Flaticon.woff") format("woff"), 11 | url("./Flaticon.ttf") format("truetype"), 12 | url("./Flaticon.svg#Flaticon") format("svg"); 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | 17 | @media screen and (-webkit-min-device-pixel-ratio:0) { 18 | @font-face { 19 | font-family: "Flaticon"; 20 | src: url("./Flaticon.svg#Flaticon") format("svg"); 21 | } 22 | } 23 | 24 | .fi:before{ 25 | display: inline-block; 26 | font-family: "Flaticon"; 27 | font-style: normal; 28 | font-weight: normal; 29 | font-variant: normal; 30 | line-height: 1; 31 | text-decoration: inherit; 32 | text-rendering: optimizeLegibility; 33 | text-transform: none; 34 | -moz-osx-font-smoothing: grayscale; 35 | -webkit-font-smoothing: antialiased; 36 | font-smoothing: antialiased; 37 | } 38 | 39 | .flaticon-printing-photo:before { content: "\f100"; } 40 | .flaticon-focusing-target:before { content: "\f101"; } 41 | .flaticon-camera:before { content: "\f102"; } 42 | .flaticon-polaroid-pictures:before { content: "\f103"; } 43 | .flaticon-big-lens:before { content: "\f104"; } 44 | .flaticon-film:before { content: "\f105"; } 45 | 46 | $font-Flaticon-printing-photo: "\f100"; 47 | $font-Flaticon-focusing-target: "\f101"; 48 | $font-Flaticon-camera: "\f102"; 49 | $font-Flaticon-polaroid-pictures: "\f103"; 50 | $font-Flaticon-big-lens: "\f104"; 51 | $font-Flaticon-film: "\f105"; -------------------------------------------------------------------------------- /public/assets/front/fonts/flaticon/font/flaticon.css: -------------------------------------------------------------------------------- 1 | /* 2 | Flaticon icon font: Flaticon 3 | Creation date: 12/12/2018 14:43 4 | */ 5 | 6 | @font-face { 7 | font-family: "Flaticon"; 8 | src: url("./Flaticon.eot"); 9 | src: url("./Flaticon.eot?#iefix") format("embedded-opentype"), 10 | url("./Flaticon.woff") format("woff"), 11 | url("./Flaticon.ttf") format("truetype"), 12 | url("./Flaticon.svg#Flaticon") format("svg"); 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | 17 | @media screen and (-webkit-min-device-pixel-ratio:0) { 18 | @font-face { 19 | font-family: "Flaticon"; 20 | src: url("./Flaticon.svg#Flaticon") format("svg"); 21 | } 22 | } 23 | 24 | [class^="flaticon-"]:before, [class*=" flaticon-"]:before, 25 | [class^="flaticon-"]:after, [class*=" flaticon-"]:after { 26 | font-family: Flaticon; 27 | font-size: 20px; 28 | font-style: normal; 29 | margin-left: 20px; 30 | } 31 | 32 | .flaticon-printing-photo:before { content: "\f100"; } 33 | .flaticon-focusing-target:before { content: "\f101"; } 34 | .flaticon-camera:before { content: "\f102"; } 35 | .flaticon-polaroid-pictures:before { content: "\f103"; } 36 | .flaticon-big-lens:before { content: "\f104"; } 37 | .flaticon-film:before { content: "\f105"; } -------------------------------------------------------------------------------- /public/assets/front/fonts/flaticon/license/license.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/flaticon/license/license.pdf -------------------------------------------------------------------------------- /public/assets/front/fonts/icomoon/icomoon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/icomoon/icomoon.eot -------------------------------------------------------------------------------- /public/assets/front/fonts/icomoon/icomoon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/icomoon/icomoon.ttf -------------------------------------------------------------------------------- /public/assets/front/fonts/icomoon/icomoon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/icomoon/icomoon.woff -------------------------------------------------------------------------------- /public/assets/front/fonts/ionicons/fonts/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/ionicons/fonts/.DS_Store -------------------------------------------------------------------------------- /public/assets/front/fonts/ionicons/fonts/ionicons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/ionicons/fonts/ionicons.eot -------------------------------------------------------------------------------- /public/assets/front/fonts/ionicons/fonts/ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/ionicons/fonts/ionicons.ttf -------------------------------------------------------------------------------- /public/assets/front/fonts/ionicons/fonts/ionicons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/ionicons/fonts/ionicons.woff -------------------------------------------------------------------------------- /public/assets/front/fonts/ionicons/fonts/ionicons.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/ionicons/fonts/ionicons.woff2 -------------------------------------------------------------------------------- /public/assets/front/fonts/open-iconic/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/open-iconic/open-iconic.eot -------------------------------------------------------------------------------- /public/assets/front/fonts/open-iconic/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/open-iconic/open-iconic.otf -------------------------------------------------------------------------------- /public/assets/front/fonts/open-iconic/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/open-iconic/open-iconic.ttf -------------------------------------------------------------------------------- /public/assets/front/fonts/open-iconic/open-iconic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/fonts/open-iconic/open-iconic.woff -------------------------------------------------------------------------------- /public/assets/front/images/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/.DS_Store -------------------------------------------------------------------------------- /public/assets/front/images/about.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/about.jpg -------------------------------------------------------------------------------- /public/assets/front/images/author.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/author.jpg -------------------------------------------------------------------------------- /public/assets/front/images/bg_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/bg_1.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_1.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_10.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_11.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_12.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_2.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_3.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_4.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_5.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_6.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_7.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_8.jpg -------------------------------------------------------------------------------- /public/assets/front/images/image_9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/image_9.jpg -------------------------------------------------------------------------------- /public/assets/front/images/loc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/loc.png -------------------------------------------------------------------------------- /public/assets/front/images/person_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/person_1.jpg -------------------------------------------------------------------------------- /public/assets/front/images/person_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/person_2.jpg -------------------------------------------------------------------------------- /public/assets/front/images/person_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/person_3.jpg -------------------------------------------------------------------------------- /public/assets/front/images/person_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/images/person_4.jpg -------------------------------------------------------------------------------- /public/assets/front/js/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/js/.DS_Store -------------------------------------------------------------------------------- /public/assets/front/js/google-map.js: -------------------------------------------------------------------------------- 1 | 2 | var google; 3 | 4 | function init() { 5 | // Basic options for a simple Google Map 6 | // For more options see: https://developers.google.com/maps/documentation/javascript/reference#MapOptions 7 | // var myLatlng = new google.maps.LatLng(40.71751, -73.990922); 8 | var myLatlng = new google.maps.LatLng(40.69847032728747, -73.9514422416687); 9 | // 39.399872 10 | // -8.224454 11 | 12 | var mapOptions = { 13 | // How zoomed in you want the map to start at (always required) 14 | zoom: 7, 15 | 16 | // The latitude and longitude to center the map (always required) 17 | center: myLatlng, 18 | 19 | // How you would like to style the map. 20 | scrollwheel: false, 21 | styles: [ 22 | { 23 | "featureType": "administrative.country", 24 | "elementType": "geometry", 25 | "stylers": [ 26 | { 27 | "visibility": "simplified" 28 | }, 29 | { 30 | "hue": "#ff0000" 31 | } 32 | ] 33 | } 34 | ] 35 | }; 36 | 37 | 38 | 39 | // Get the HTML DOM element that will contain your map 40 | // We are using a div with id="map" seen below in the 41 | var mapElement = document.getElementById('map'); 42 | 43 | // Create the Google Map using out element and options defined above 44 | var map = new google.maps.Map(mapElement, mapOptions); 45 | 46 | var addresses = ['New York']; 47 | 48 | for (var x = 0; x < addresses.length; x++) { 49 | $.getJSON('http://maps.googleapis.com/maps/api/geocode/json?address='+addresses[x]+'&sensor=false', null, function (data) { 50 | var p = data.results[0].geometry.location 51 | var latlng = new google.maps.LatLng(p.lat, p.lng); 52 | new google.maps.Marker({ 53 | position: latlng, 54 | map: map, 55 | icon: 'images/loc.png' 56 | }); 57 | 58 | }); 59 | } 60 | 61 | } 62 | google.maps.event.addDomListener(window, 'load', init); -------------------------------------------------------------------------------- /public/assets/front/js/jquery.animateNumber.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | jQuery animateNumber plugin v0.0.14 3 | (c) 2013, Alexandr Borisov. 4 | https://github.com/aishek/jquery-animateNumber 5 | */ 6 | (function(d){var r=function(b){return b.split("").reverse().join("")},m={numberStep:function(b,a){var e=Math.floor(b);d(a.elem).text(e)}},g=function(b){var a=b.elem;a.nodeType&&a.parentNode&&(a=a._animateNumberSetter,a||(a=m.numberStep),a(b.now,b))};d.Tween&&d.Tween.propHooks?d.Tween.propHooks.number={set:g}:d.fx.step.number=g;d.animateNumber={numberStepFactories:{append:function(b){return function(a,e){var f=Math.floor(a);d(e.elem).prop("number",a).text(f+b)}},separator:function(b,a,e){b=b||" "; 7 | a=a||3;e=e||"";return function(f,k){var u=0>f,c=Math.floor((u?-1:1)*f).toString(),n=d(k.elem);if(c.length>a){for(var h=c,l=a,m=h.split("").reverse(),c=[],p,s,q,t=0,g=Math.ceil(h.length/l);t slide2) { 16 | [slide1, slide2] = [slide2, slide1]; 17 | // var tmp = slide2; 18 | // slide2 = slide1; 19 | // slide1 = tmp; 20 | } 21 | 22 | numberS[0].value = slide1; 23 | numberS[1].value = slide2; 24 | } 25 | }); 26 | 27 | numberS.forEach(function(el) { 28 | el.oninput = function() { 29 | var number1 = parseFloat(numberS[0].value), 30 | number2 = parseFloat(numberS[1].value); 31 | 32 | if (number1 > number2) { 33 | var tmp = number1; 34 | numberS[0].value = number2; 35 | numberS[1].value = tmp; 36 | } 37 | 38 | rangeS[0].value = number1; 39 | rangeS[1].value = number2; 40 | 41 | } 42 | }); 43 | 44 | })(); -------------------------------------------------------------------------------- /public/assets/front/scss/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/scss/.DS_Store -------------------------------------------------------------------------------- /public/assets/front/scss/bootstrap/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maharshi-abi/laravel-reactjs-crud/74e55cacb31af5e1f9677380ae70f5b35aee8d55/public/assets/front/scss/bootstrap/.DS_Store -------------------------------------------------------------------------------- /public/assets/front/scss/bootstrap/_alert.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Base styles 3 | // 4 | 5 | .alert { 6 | position: relative; 7 | padding: $alert-padding-y $alert-padding-x; 8 | margin-bottom: $alert-margin-bottom; 9 | border: $alert-border-width solid transparent; 10 | @include border-radius($alert-border-radius); 11 | } 12 | 13 | // Headings for larger alerts 14 | .alert-heading { 15 | // Specified to prevent conflicts of changing $headings-color 16 | color: inherit; 17 | } 18 | 19 | // Provide class for links that match alerts 20 | .alert-link { 21 | font-weight: $alert-link-font-weight; 22 | } 23 | 24 | 25 | // Dismissible alerts 26 | // 27 | // Expand the right padding and account for the close button's positioning. 28 | 29 | .alert-dismissible { 30 | padding-right: $close-font-size + $alert-padding-x * 2; 31 | 32 | // Adjust close link position 33 | .close { 34 | position: absolute; 35 | top: 0; 36 | right: 0; 37 | padding: $alert-padding-y $alert-padding-x; 38 | color: inherit; 39 | } 40 | } 41 | 42 | 43 | // Alternate styles 44 | // 45 | // Generate contextual modifier classes for colorizing the alert. 46 | 47 | @each $color, $value in $theme-colors { 48 | .alert-#{$color} { 49 | @include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level)); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /public/assets/front/scss/bootstrap/_badge.scss: -------------------------------------------------------------------------------- 1 | // Base class 2 | // 3 | // Requires one of the contextual, color modifier classes for `color` and 4 | // `background-color`. 5 | 6 | .badge { 7 | display: inline-block; 8 | padding: $badge-padding-y $badge-padding-x; 9 | @include font-size($badge-font-size); 10 | font-weight: $badge-font-weight; 11 | line-height: 1; 12 | text-align: center; 13 | white-space: nowrap; 14 | vertical-align: baseline; 15 | @include border-radius($badge-border-radius); 16 | @include transition($badge-transition); 17 | 18 | @at-root a#{&} { 19 | @include hover-focus { 20 | text-decoration: none; 21 | } 22 | } 23 | 24 | // Empty badges collapse automatically 25 | &:empty { 26 | display: none; 27 | } 28 | } 29 | 30 | // Quick fix for badges in buttons 31 | .btn .badge { 32 | position: relative; 33 | top: -1px; 34 | } 35 | 36 | // Pill badges 37 | // 38 | // Make them extra rounded with a modifier to replace v3's badges. 39 | 40 | .badge-pill { 41 | padding-right: $badge-pill-padding-x; 42 | padding-left: $badge-pill-padding-x; 43 | @include border-radius($badge-pill-border-radius); 44 | } 45 | 46 | // Colors 47 | // 48 | // Contextual variations (linked badges get darker on :hover). 49 | 50 | @each $color, $value in $theme-colors { 51 | .badge-#{$color} { 52 | @include badge-variant($value); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /public/assets/front/scss/bootstrap/_breadcrumb.scss: -------------------------------------------------------------------------------- 1 | .breadcrumb { 2 | display: flex; 3 | flex-wrap: wrap; 4 | padding: $breadcrumb-padding-y $breadcrumb-padding-x; 5 | margin-bottom: $breadcrumb-margin-bottom; 6 | list-style: none; 7 | background-color: $breadcrumb-bg; 8 | @include border-radius($breadcrumb-border-radius); 9 | } 10 | 11 | .breadcrumb-item { 12 | // The separator between breadcrumbs (by default, a forward-slash: "/") 13 | + .breadcrumb-item { 14 | padding-left: $breadcrumb-item-padding; 15 | 16 | &::before { 17 | display: inline-block; // Suppress underlining of the separator in modern browsers 18 | padding-right: $breadcrumb-item-padding; 19 | color: $breadcrumb-divider-color; 20 | content: $breadcrumb-divider; 21 | } 22 | } 23 | 24 | // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built 25 | // without `