Laravel how to set app environment during tests
If you need to set an environment to be a specific one such as staging you can override the environment by changing the config value app_env config(['app.env' => 'staging']); Then doing a dd on config(‘app.env’) will retu that environment you’ve just set. I haven’t found a way to set environments wi...
Laravel organise migrations into folders
When a project grows the migrations folder can contain a lot of migration, ever wanted to desperate them into folders? tu s out it's easy to so. All you need to do is tell Laravel where to read the migrations from. In your AppServiceProvider.php boot call, you can call $this->loadMigrationsFrom() an...
Laravel how to test CSV download
When you have a CSV generated how do you test it runs. Take this extract: public function export() { $actions = $this->getData()->get(); $columns = [ 'User', 'Start Date', 'End Date', ]; $data = []; foreach ($actions as $action) { $data[] = [ $action->user->name ?? '', $action->due_at, $action->comp...
Free Ping Submission Sites List 2021
What is ping submission in SEO? Ping Submission is the off page SEO process that tell search engine about newly created back link, blog post and website post. This process helps in crawling and indexing of your newly created backlink. It is very simple process, you have to submit your blog here and ...
8 Mistakes You Might Be Making With Your Website Design
You may think designing a website is easy, but many businesses still make mistakes when building one. Those mistakes can reduce conversions and scare away leads Here I present to you eight website design mistakes you may make and how you can fix them. You Don’t Use The Right Templates Every website ...
Top 12 Backlink Checker Tools for 2021 (Free & Paid)
Backlinks are the backbone of your website. According to SEO experts, backlinks are essential sources of traffic generation and higher domain authority which make backlinks vital components to accrue top ranking on SERPs. However, for creating good backlinks, you definitely need backlink tools and a...