Looking for best way to setup a VPS server for laravel and other needs. I recently moved from shared hosting to vps, after moving came to know i have blank server, i have to setup everything, now what is the best way to setup vps server with all services like shared hosting, like important things Email, Web Server other services. how much ram and cpu required for personal portfolio site.
umefarooq left a reply on HTML Forms Vs Laravel-form-builder Vs Forms & HTML
I really like and using Laravel Collective forms.
well you answer helped me but you need to modify little to show where is got-data event is that's the missing part of answer.
i have updated my question.
umefarooq left a reply on Laravel 5.4: Define A Reset Password Email Template?
you can publish all vendor blade files to your resources/views/vendor directory you can modify default reset password template.
php artisan vendor:publish
after publishing you can file email.blade.php under resources/views/vendor/notifications directory
umefarooq started a new conversation How To Save Only Selected Items Using HasMany On Update And Remove Already Save Items Not Selected.
Hi, i need help for updating one to many relationship, i am using multiple select dropdwon list and checkbox array to save information. first time save is working fine, on update if i uncheck or not selecting any old item, it should save only selected items, uncheck or not selected item should be deleted from database.
@Bounoable I'm returning everything from controller simple laravel auth not able to set session after successful login
@SaeedPrez thanks I will check blade thing I have already set app_URL in .env file laravel creating session files on each request, but locally on my mac development machine everything works fine I have saved same problem in laravel 5.2 project
umefarooq left a reply on Laravel 5.3 Not Saving Session On My Production Server
@bobbybouwmann its just fresh install, i am using session driver as database this problem drive me crazy, i think because of this session problem i am also getting CSRF token mismatch exception right now i have disabled VerifyCsrfToken middleware
umefarooq started a new conversation Laravel 5.3 Not Saving Session On My Production Server
Hi, im trying to login using laravel auth but its not saving session and always redirected to login page, not any login any kind of session is not working anybody can help me what im doing wrong for laravel session, on my local machine project works fine
usernaem/password [email protected]/123456
umefarooq started a new conversation Laravel 5.3 Authenticate Middleware Extend Or Modify For Personal Project.
Hi, in laravel 5.2 Authenticate middleware was available under
it was easy to modify that middle ware, now in laravel 5.3 it is moved to following path
if i want to extend this middleware how i can do that or i have to create another auth middleware and change path in kernel.php.
need a good and easy solution with changing core auth middleware.
I also agree with most, now my question is if you have single database for multiple companies how you protect data while editing or getting from other companies, if we use just primary key to edit any company can access data of other company,
please share some good ideas to protect data.
well fond the solution my self valet link works fine go inside project directory valet link site1 will link your project directory to domain site1.dev
umefarooq started a new conversation How To Point Valet Multiple Domains To One Directory Or Project
i am using valet for development, right now it is creating single domain for single project or directory, how i can i point different domains to single directory or project. like site is main directory site.dev works fine how i can point site1.dev or site2.dev to site folder.
which queue driver is faster database or redis, if any body has some benchmarks please provide, i have used database queue driver it took 1 hour to complete 2815 jobs. sending push notifications for ios and android devices.
umefarooq started a new conversation Looking Fast Push Notification Solution Bulk Push.
Hi i am looking for push notification solution which can send notification to thousand of devices (ios, android) with in no time, i have developed one my own using laravel 5.2 and laravel push notification package, without laravel queue its sending but maximum execution time limit exit the processing and gives error, now using laravel queue but it executing each process one by one which take time to send push notificat thousand of devices. for 1380 devices it took 35 min. from my development machine.
any online solution, service or help with laravel queue to send them fast.
Hi if you really want private git repos and your team is small than use dropbox or owncloud(really really private) and git to share your git repo with team,
you can create branches of your git repo ask developer to work on branch later you can marge them in your main repo.
read this article to create git repo with dropbox- work same for owncloud
owncloud self hosted cloud. https://owncloud.org/
i think you are passing collection object to associate method, it accept only array try to convert your collection object toArray() for your all associate keys
Hi, i am facing this problem since i have installed mod_security on my server, all my applications build on laravel start giving token mismatch problem on form submit, i have disabled middleware for the time being, keep apps in working, my server windows server, with apache and mod_security. i don't under stand where the problem is anybody can help or better solution.
if you have installed composer global package using sudo than file owner will be root, in server.php it is checking file owner and then setting VALET_HOME_PATH, you need to change owner ship of all global packages or laravel/valet only. better to change for all so next time composer update or install without sudo.
cd ~/.composer/ sudo chown -R $(whoami) vendor
now happy development with valet.
this could be helpful for any body i was also facing same problem, if you are setting database configuration through .env file than need to commented DB_DATABASE config which is null with fresh install of laravel, database config in .env file like this
DB_CONNECTION=sqlite #DB_HOST=127.0.0.1 #DB_PORT=null #DB_DATABASE=null #DB_USERNAME=null #DB_PASSWORD=null
yes thanks its work perfect i found slash in path.
umefarooq started a new conversation Valet Not Starting Giving "Valet Requires Brew To Be Installed On Your Mac."
Hi i want to try valet, my mac machine has brew, valet and php7 installed, when i try to start valet it give me the following message
Valet requires Brew to be installed on your Mac.
i search in valet repository for this message following code check brew path
echo 'Valet requires Brew to be installed on your Mac.'; exit(1); } ``` in terminal run which brew command and i am getting following path ```/usr/local/bin//brew``` i don't understand why this double slash i appearing in path because of that in valet code path string is not matching.
@mehany on any form submission i am getting this
This question is asked over and over but my problems is not solved i have googled and check all threads on my local machine everything working fine recently i have changed my production server and i am getting this problem i have windows server not able to figure out how to solve this problem, for form creation i am using laravelcollective/html package which is creating _token field, even i have created manually same problem.
i have also tried
php artisan cache:clear
Hi i am trying to upload excel file i am also validating excel file but facing problem with excel file mime type validation here is code i am using for file
'file' => 'required|mimes:xls,xlsx'
i don't know how laravel is checking mime, where i can set missing mimes for excel files in laravel.
umefarooq started a new conversation Where To Load Site Setting Save In Database Service Provider Or Middle Wares?
Where to load site settings saved in database service provider or middle wares so it will be available for application as global settings. looking for good idea also.
umefarooq started a new conversation [New Update] Example On How To Use Multiple Locales In Your Laravel 5 Website
Hi, just added some more functionality to the script, right now this script adding locales all routes, if you want to skip locales for some routes like admin or private i have created pull request for this here is link for pull request
How you can skip locales
download my repo code, if my request is not pulled in original repo.
open config/app.php find skip_locales or add config than add first segment of url you want to skip like following
'skip_locales' => ['admin','other']
now you can call URL with and without locales
www.yoursite.com/admin //without locale and www.yoursite.com/en/page-slug //with locale
All credit gose to @Marwelln author of this code here is link for original post https://laracasts.com/discuss/channels/tips/example-on-how-to-use-multiple-locales-in-your-laravel-5-website?page=1
thanks @desloc middleware is good idea to check authorization.
umefarooq started a new conversation How I Can Restrict A Role To Access Complete Controller Or Module Not Specific Method?
Hi i need to know is it possible Laravel ACL to restrict a role from a complete controller or module? not a specific method of controller (edit, create, store, update or delete)
umefarooq left a reply on The --plain Option In Php Artisan Help Is Missing.
yes now in laravel 5.2 make:controller command creates plan controller, if you want to make resource controller you need to add --resource
php artisan make:controller ControllerName //create plain controller php artisan make:controller ControllerName --resource
well fond the problem, problem with blade comments, i have removed the commented code from view and its work fine
umefarooq started a new conversation The Connection Was Reset On Laravel 5 Login Or Register Page.
Hi, i am using laravel 5.1 authentication on my development server its work fine but on my production server both login and register pages give error The connection was reset, as there is no php/ laravel error not able to figure out where is the problem.
umefarooq left a reply on How To Validate Form On Post Route With Form Request
i have two databases on sqlsrv and 2nd mysql, first form will send student id fetch record from sqlsrv and fill 2nd form, 2nd form saving information in mysql db with data from sqlsrv db, i want to validate 2nd form but route is post. form request validation send back only get response if validation fails.
umefarooq started a new conversation How To Validate Form On Post Route With Form Request
Hi i have two forms, first form is posting user id to 2nd form which is fetching data and filling 2nd form, problem with Form request validation on 2nd form, here are my routes
Route::get('/','StudentController@index'); //form 1 Route::post('info/find','StudentController@findStudent'); // form2
on Form 2 after Form request validation test its trying to redirect back to as get request but i have post data in it, how i can redirect back to form 2 with post data and post response.
@halmerdavila little improvement in code no need to put if block keep it simple just need to use php tags