Can't see your code block. Please resend it....
Read more »
2 Answer 709 Views
It's quite easy to retrieve session in laravel constructor. All you need to do is move these two lines
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
from your protected $middlewareGroups = [] array to your protected $middleware= [ ] array in your App\Http\kernel.php.
Once you move these ...
Read more »
1 Answer 1560 Views
Showing a jquery popup only once to a user at one visit regardless of how many pages he goes through is easy but a bit tricky technique. You might even have noticed a huge number of designers and developers display them on homepage only. But the issue is, the popup would appear everytime a user goes back to the home page.
Whether you are using Laravel or some other framework, if you are working on any server side language, then, the best option would be to go with the session.
...
Read more »
1 Answer 4905 Views
Generally, I have experienced such issue with shared hosting where all the controllers and routes are loaded through cache. The view files seem to reflect the changes as soon as they are updated though.
The basic idea would be to create a closure function in your routes/web.php file and call all the artisan cache clearing methods from that function like:
Route::get('clear-cache', function() {
Artisan::call('cache:clear');
Artisan::call('optimi...
Read more »
1 Answer 3167 Views
This laravel error occurs when you try to use orWhere on collections like get() or all(). This generally happens especially in search queries where you want to retrieve data depending upon multiple conditions and you don't know how to write the base query and concatenate the clauses if certain conditions meet.
Recently, I was working on a school management system where I exactly went through the same scenario and here you can find what I did.
...
Read more »
1 Answer 8804 Views
Sending email via domain email account or server from an application built on laravel is very easy. In fact, Laravel Mail recommends developers to use other APIs such as mailgun and sparkpost to send mail if possible as they are simpler and faster than SMTP servers. If you are thinking what SMTP stands for then it stands for Simple Mail Transfer Protocol, which is the standard protocol for email exchange on the internet. These AP...
Read more »
1 Answer 15578 Views
Your question is too broad to answer.
First of all, you'll need a frontend design that you want to display to your website visitors.
Then, you'll need a content management system which will be created using Laravel to make it easier for yourself to add, delete or modify contents on your website which will need tno knowledge about web design and development.
To build a website in Laravel, the first and foremost thing you'll need ...
Read more »
2 Answer 1435 Views
Basically, it's quite similar to the basic crud operation with a touch of authentication so that nobody could post unwanted contents on the forum.
You can add your own custom data table for forum questions, answers, likes, comments and users. This link How to add custom data tablein wordpress dashboard will guide you through the process on how to add, dis...
Read more »
1 Answer 3111 Views
Adding a trailing slash to a url is unnecessary most of the times but comes to use in cases where you are working on a website that has been online for a couple of years and all the urls in the past used to be with a trailing slashes.
Since, the urls with trailing slashes are already indexed by search engines, your client might not want to mess things up by submitting a new set of urls to search engines without trailing slashes. You might know search engines treat url with and witho...
Read more »
1 Answer 23410 Views
Showing
1
to
10
of
34
results